This is a stencil for common package base on node and mocha.
- Support Publish your package to git & npm with ci.
- Support CircleCi for pipeline.
- Support ES7 & ES6 syntax.
- Support ESlint to check the code.
- Support Mocha & Chai to test your code.
- Support Yarn audit to do security check for dependencies.
Clone this stencil and replace @xq-stencil/node-mocha-chai-lib
with your package name.
$ git clone git@github.com:xqstencils/node-mocha-chai-lib.git
$ yarn install
$ yarn babel
# or run babel in watch mode
$ yarn babel:watch
$ yarn build
$ yarn lint
$ yarn test
# or run the test in watch mode
$ yarn test:watch
$ yarn audit
- Update the circleci config
- Setup the ci into circleci site.
$ yarn release
node-mocha-chai-lib is released under the MIT license.