A boilerplate for browser modules using karma and webpack
This is a boilerplate for a browser based modules using:
- mocha tests,
- karma in browser testing,
- webpack and babel,
- karma-coverage and c8 for code coverage,
- eslint using standard syntax for code linting
The files contain examples to show the usage of the different tools in your code.
Run the different tools from npm
npm test
- Run mocha tests with coveragenpm run tdd
- Run tests with auto-watchnpm run lint
- Linting the source
Do not use { "types": "module" }
in package.json
as karma won't start.
If you contribute code to this project, you are implicitly allowing your code to be distributed under the ISC license. You are also implicitly verifying that all code is your original work or correctly attributed with the source of its origin and licence.
Copyright (c) 2016 commenthol ([ISC License][])
See LICENSE for more info.