Miss any of our Open RFC calls?Watch the recordings here! »

zr-deploy

1.2.6 • Public • Published

zr-deploy

中文 | English

Web FrontEnd Spa, deploy script

In fact, as long as it is an npm project (with package.json), it can generally be used

Install

npm i -g zr-deploy

Run

cd project directory

zr-deploy

zr-deploy-config.json

  • local

    • buildCommand: command in "scripts" in package.json
    • distDir: build output path
    • distZip: build output file/folder zip
    • tipsLang: opntional, value: en | zh; use zh when not provide
  • server

    • name: name
    • host: server IP
    • username: server login username
    • password: server login password
    • distDir: server preject path
    • distZipName: zip filename of upload
    • bakeup: bakeup or not
[
  {
    "local": {
      "buildCommand": "yarn build",
      "distDir": "./docs",
      "distZip": "./docs.zip",
      "tipsLang": "en"
    },
    "server": {
      "name": "server1",
      "host": "1.1.1.1",
      "username": "username",
      "password": "password",
      "distDir": "/var/www/xxx/xxx",
      "distZipName": "dist",
      "bakeup": false
    }
  }
]

Description

Description.md

Keywords

Install

npm i zr-deploy

DownloadsWeekly Downloads

22

Version

1.2.6

License

ISC

Unpacked Size

38.4 kB

Total Files

27

Last publish

Collaborators

  • avatar