es6-webpack scaffold
A scaffold for ES6 projects that wish to use webpack. Tests run with Karma.
Dependencies
node
Install
npm install
Develop
npm run serve-dev
http://localhost:9500/webpack-dev-server/
Build
For prod:
npm run build
npm run build-dev
Test
Unit tests are executed against lib/**
and can be run by the following command:
npm test
Coverage
A coverage report can be viewed by using the following command:
npm run coverage
This runs a karma configuration that runs the tests once and generates a coverage report. This is needed because you cannot use this configuration when running tests in development if you wish to debug the source in a browser.