0.0.12 • Published 7 months ago

node-relase-front v0.0.12

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

node-relase-front

前端打包发布

第一步

npm install node-relase-front -g

第二步

在 package.json 文件添加:

"publish": {
  "host": "127.0.0.1",                                        // 服务器地址
  "port": "22",                                               // 服务器端口,默认22
  "username": "username",                                     // 服务器用户名
  "password": "password",                                     // 服务器密码,默认为空
  "skipInstall": true,                                        // 本次发布是否不npm intall,默认false
  "skipBuild": true,                                          // 本次发布是否不打包,默认false
  "buildOrder": "npm run build",                              // 打包命令
  "buildUrl": "./dist",                                       // 前端本地打包目录地址,默认'./dist'
  "serverUrl": "/home/dev",                                   // 服务器前端文件/脚本执行目录地址
  "serverOrder": "sh /home/dev/auto_deploy_front.sh",       // 服务器脚本执行,与serverUrl同时存在时,会先把打包目录打包成zip,上传到serverUrl并执行此命令
},

或者

"publish": {
  "dev": {
    "host": "127.0.0.1",
    "username": "username",
    "password": "password",
    "serverUrl": "/home/dev",
  },
  ...
},

第三步

在项目目录中运行

publish

或者

publish dev
0.0.12

7 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago