Modify hosts
10.10.105.86 npm.dot.com
$ npm i in-cli -g --registry http://npm.dot.com
& npm run test
npm run publish
在Jenkins上发布当前分支 仅支持mac、安装了docker 并且需要配置 JENKINS_TOKENnpm run tiny
压缩文件夹,配置压缩文件夹config/index.js
的build.imgRegx.compress
,默认assets/img
文件夹npm run qiniu
上传文件夹,配置上传文件夹config/index.js
的build.imgRegx.qiniu
,默认assets/qiniu
文件夹
# install dependencies
npm install
# serve with hot reload at localhost:8018
npm run start
# build for production with minification
npm run build
# install prod dependencies
npm install --prod
# serve with hot reload at localhost:8018
npm run dstart
# build for production with minification
npm run dbuild
# open
http://<host>:8018
# add jenkis token
npm config set JENKINS_TOKEN <user>:<token>
# publish (must not master/develop branch)
npm run publish