1.0.1 • Published 6 years ago
egg-gen-boilerplate v1.0.1
huiju-gen-boilerplate
pro cli boilerpates for egg
快速入门
如需进一步了解,参见 egg 文档。
本地开发
$ npm i
$ npm run dev
$ open http://localhost:7001/
部署
$ npm start
$ npm stop
单元测试
- egg-bin 内置了 mocha, thunk-mocha, power-assert, istanbul 等框架,让你可以专注于写单元测试,无需理会配套工具。
- 断言库非常推荐使用 power-assert。
- 具体参见 egg 文档 - 单元测试。
内置指令
- 使用
npm run lint
来做代码风格检查。 - 使用
npm test
来执行单元测试。 - 使用
npm run autod
来自动检测依赖更新,详细参见 autod 。