- ES6 / ES7 transpilation with Babel
- ES6+ minification with Babili babili
- ES6+ Testing via babel-register with Mocha & Chai
- HTML Test Reports via mochawesome
- Code Linting with ESLint
- Benchmark Testing with benchmark.js
- Code monitoring and auto server restart with nodemon
- Debugging with babel-node-debug
- Security vulnerability scan with nsp
- Docker build for non-lib projects.
npm start
- execute code insrc
directory with live reload vianodemon
transpiled withbabel-node
npm run serve:dev <target>
- execute target code with live reload vianodemon
transpiled withbabel-node
npm run debug src
- execute code with debug flag enablednpm run benchmark
- run benchmark tests withbenchmark.js
npm run benchmark:watch
- run benchmark tests withbenchmark.js
and watch for file changesnpm run lint
- code linting witheslint
npm run lint:fix
- fix problems automatically witheslint
npm test
- run tests withmocha
andchai
with spec as reporter andnyc
code coveragenpm run test:watch
- run tests withmocha
andchai
and watch for changesnpm run test:reporter-list
- run tests withmocha
andchai
withlist
reporternpm run test:export
- export tests results as html files in the./reports
folder viamochasome
npm run build:dist
- transpile and minify ES6+ code and create sourcemaps withbabel
&babili
npm run serve:dist
- serve production files from the./dist
folder vianode
npm run scan:security
- run vulnerability tests via the node security platformnsp
npm run scan:updates
- check for latest versions of dependencies viancu
Testing with Mocha and Chai, HTML Reports via mochawesome
npm test
Benchmark Testing with Benchmark.js
npm run benchmark
Currently a known issues in node-inspector/. in current Version 0.12.8 here prevents use with Node Version 6x.
Current debug workaround for node 6.x:
"debug": "nodemon $2 --exec babel-node --debug",
When issues is resolved or on version 4.x / 5.x:
"debug": "babel-node-debug $2",
and run it via ...
npm run debug src
Run vulnerability tests via Node Security Project
Check for dependency updates via NPM Check Updates