1.2.16 • Published 3 years ago
hiredchina_webant v1.2.16
u_webant
QuickStart
see egg docs for more detail.
Development
$ git checkout -b dev master
$ npm i
$ npm run dev
$ open http://localhost:7001/
Merge
$ git checkout master
$ git merge --no-ff dev
Release
在本地项目
$ npm run rel
# 等同于 git branch -d rel && git checkout -b rel master && npm run build
先在服务器上创建好对应的文件夹
$ mkdir /home/egg/u_webant && cd /home/egg/u_webant
在本地项目
$ git checkout -b rel master
$ npm run tt
Deploy
在服务器
$ npm start
$ npm stop
npm scripts
- Use
npm run lint
to check code style. - Use
npm test
to run unit test. - Use
npm run autod
to auto detect dependencies upgrade, see autod for more detail.