Skip to content

js-utils/jsdeploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsdeploy

安装该工具

$ npm i jsdeploy -g
# 初始化项目部署配置文件
$ jsdeploy init 
# 初始化本地和服务器部署目录结构
$ jsdeploy setup -e staging
# 编辑打包本地代码
$ jsdeploy build -e staging
# 部署到服务器
$ jsdeploy deploy -e staging
# 回滚最后一次部署
$ jsdeploy rollback -e staging
# 清理本地部署临时文件
$ jsdeploy clean

如无需回滚功能

{
  "scripts": {
    "deploy-prod": "npm run build && scp -r ./dist/* [email protected].**:/mnt/www/huobi/huobi-admin"
  }
}

About

前端自动化部署脚本

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published