zr-deploy
v1.2.7
Published
Web FrontEnd Spa Deploy
Downloads
18
Readme
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" inpackage.json
distDir
: build output pathdistZip
: build output file/folder ziptipsLang
: opntional, value:en
|zh
; usezh
when not provide
server
name
: namehost
: server IPport
: server portusername
: server login usernamepassword
: server login passworddistDir
: server preject pathdistZipName
: zip filename of uploadbakeup
: bakeup or not
[
{
"local": {
"buildCommand": "yarn build",
"distDir": "./docs",
"distZip": "./docs.zip",
"tipsLang": "en"
},
"server": {
"name": "server1",
"port": "22",
"host": "1.1.1.1",
"username": "username",
"password": "password",
"distDir": "/var/www/xxx/xxx",
"distZipName": "dist",
"bakeup": false
}
}
]