zeploy

0.2.1 • Public • Published

ZEPLOY

Automated deployment tool

Installation and Usage

Local

Installation

npm install zeploy --D

or

yarn add zeploy -D

config

create an environment configuration:

./node_modules/.bin/zeploy config production

Global

Installation

npm install -g zeploy

or

yarn global add zeploy

config

create an environment configuration:

zeploy config production

Configuration

edit zeploy.config.js in root directory:

module.exports = {
  "production": {
    "ssh": {
      "host": "123.45.67.89",
      "username": "root",
      "password": "123456"
    },
    /** Relative path */
    "distPath": "dist",
    /** Absolute path */
    "targetPath": "/project/project-name",
    /** Save the number of published versions(default 10) */
    "keepReleases": "10",
    /** Can only be executed if the environment name is exactly the same as the branch name */
    "checkBranch": false
  }
}

then deploy your project:

zeploy publish production

result:

// your distPath
dist
- index.html
- static
  - css
    - app.css
  - img
  - js
    - 0.js
    - 1.js
    - 2.js
    - app.js
    - vendor.js
    - manifest.js
// your targetPath
project
  - project-name
    - releases
    - dist
      - index.html
      - static
        - css
          - app.css
        - img
        - js
          - 0.js
          - 1.js
          - 2.js
          - app.js
          - vendor.js
          - manifest.js

Readme

Keywords

Package Sidebar

Install

npm i zeploy

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

14.4 kB

Total Files

11

Last publish

Collaborators

  • zhaoyuxiang