What's inside:
- ES 2015 and
async await
(via Babel); - testing (via
mocha
andchai
); - coverage (via
istanbul
); - type-checking (via
flow
); - lintings (via
eslint
).
Targets:
clean
- remove all artifacts;run.%
- runscripts/%.js
;test
- run unit tests;lint
- lint code;flow
- runflow
;compile
- compile code;cover
- runistanbul
;check-coverage
- check coverage levels;all
(default) - check everything.
Run:
mkdir my-project
cd my-project
git clone https://github.com/sim-sys/node-template ./
node bootstrap.js
And answer some questions. When you are ready to publish your lib, run make dist
and make publish
.