JSPM

  • Created
  • Published
  • Downloads 67
  • Score
    100M100P100Q73285F
  • License MIT

A deployment tool for web applications

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shipfe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Shipfe

    A powerful deployment tool for web applications with support for multiple environments and sub-environments.

    Installation

    npm install -g shipfe

    Usage

    Initialize project

    shipfe init

    Deploy to environment

    # Deploy to default environment
    shipfe deploy
    
    # Deploy to specific environment
    shipfe deploy --profile dev
    
    # Deploy to sub-environment
    shipfe deploy --profile dev-admin

    Configuration

    Edit shipfe.config.json to configure your deployment settings:

    {
      "environments": {
        "dev": {
          "build_command": "npm run build",
          "local_dist_path": "./dist",
          "servers": [
            {
              "host": "dev.example.com",
              "port": 22,
              "username": "deploy",
              "password": "your_password",
              "remote_deploy_path": "/var/www/dev",
              "delete_old": false
            }
          ],
          "remote_tmp": "/tmp",
          "sub_environments": {
            "admin": {
              "build_command": "npm run build:admin",
              "remote_deploy_path": "/var/www/dev/admin"
            }
          }
        }
      }
    }

    Features

    • Multiple environment support
    • Sub-environment configuration
    • Custom build commands
    • SSH-based deployment
    • Automatic backup and rollback
    • Detailed logging

    License

    MIT