广发node项目脚手架,提供开发工具(如代码分析,构建工具等)和建议的目录约束,同时提供各功能代码的书写建议
npm install --save gf-skeleton-node
- npm run readme :
node-readme
- npm run precommit :
npm test
- npm run prepush :
npm-run-all lint test test:deps
- npm run start :
babel-node $npm_package_main
- npm run dev :
nodemon --exec babel-node -- $npm_package_main
- npm run debug :
babel-node-debug $npm_package_main
- npm run lint :
xo
- npm run format :
xo --fix
- npm run inspect :
jsinspect
- npm run test :
lab
- npm run coverage :
lab -r lcov
- npm run build :
nar create --executable
- npm run deps:sec :
nsp audit-package
- npm run deps:updates :
david
- npm run test:deps :
npm-run-all deps:sec deps:updates
- npm run patch :
npm version patch && npm publish
- npm run minor :
npm version minor && npm publish
- npm run major :
npm version major && npm publish
- npm run postpublish :
git push origin master --follow-tags
Contributions welcome; Please submit all pull requests against the master branch. If your pull request contains JavaScript patches or features, you should include relevant unit tests. Please check the Contributing Guidelines for more details. Thanks!
sivagao http://github.com/gaohailang
Package | Version | Dev |
---|---|---|
async | ^1.5.0 | ✖ |
babel-register | ^6.3.13 | ✖ |
construx | ^1.0.0 | ✖ |
construx-copier | ^1.0.0 | ✖ |
debug | ^2.2.0 | ✖ |
express | ^4.12.2 | ✖ |
express-validator | ^2.18.0 | ✖ |
kraken-js | ^1.0.3 | ✖ |
lodash | ^3.10.1 | ✖ |
node-env-file | ^0.1.8 | ✖ |
request | ^2.67.0 | ✖ |
babel-node-debug | ^1.3.0 | ✔ |
david | ^6.4.0 | ✔ |
husky | ^0.10.1 | ✔ |
jsinspect | ^0.7.0 | ✔ |
lab | ^7.0.0 | ✔ |
nar | ^0.3.20 | ✔ |
node-readme | ^0.1.9 | ✔ |
nodemon | ^1.8.0 | ✔ |
npm-run-all | ^1.2.12 | ✔ |
nsp | ^1.1.0 | ✔ |
xo | ^0.10.1 | ✔ |
babel-preset-es2015 | ^6.3.13 | ✔ |
mocha | ^1.18.0 | ✔ |
supertest | ^0.9.0 | ✔ |
广发node项目脚手架,提供开发工具(如代码分析,构建工具等)和建议的目录约束,同时提供各功能代码的书写建议