Barebones boilerplate using
npm run-script
.
- Linting: JSHint
- Tests: Tape, Karma, PhantomJS
- Code coverage: Istanbul
- Benchmarking: Matcha
- Bundling: Browserify, UglifyJS
Lint index.js
, test/*.js
, benchmark/*.js
, and karma.conf.js
.
Run the tests in test/
, and write code coverage reports into coverage/
.
Run the tests in test/
in the browser, and write code coverage reports into coverage/
.
Run the benchmarks in benchmark/
.
Bundle index.js
as a standalone module, and write foo.js
(with source map) and foo.min.js
(minified) into dist/
.
Run all of the above tasks.