https://github.com/commenthol/blanc-karma
A boilerplate for browser modules using karma and webpack
https://github.com/commenthol/blanc-karma
Last synced: 7 days ago
JSON representation
A boilerplate for browser modules using karma and webpack
- Host: GitHub
- URL: https://github.com/commenthol/blanc-karma
- Owner: commenthol
- License: isc
- Created: 2016-02-08T21:43:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-30T10:46:44.000Z (over 4 years ago)
- Last Synced: 2025-02-26T18:53:41.167Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blanc-karma
> 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.
## Table of Contents
* [Description](#description)
* [Example ...](#example-)
* [Contribution and License Agreement](#contribution-and-license-agreement)
* [License](#license)
* [References](#references)
## Description
Run the different tools from `npm`
* `npm test` - Run mocha tests with coverage
* `npm run tdd` - Run tests with auto-watch
* `npm run lint` - Linting the source
### Example ...
## Pitfalls
Do not use `{ "types": "module" }` in `package.json` as karma won't start.
## Contribution and License Agreement
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.
## License
Copyright (c) 2016 commenthol ([ISC License][])
See [LICENSE][] for more info.
## References
* [babel][babel]
* [c8][c8]
* [eslint][eslint]
* [eslint-config-standard][eslint-config-standard]
* [eslint-plugin-standard][eslint-plugin-standard]
* [jsdox][jsdox]
* [karma][karma]
* [karma-coverage][karma-coverage]
* [LICENSE][LICENSE]
* [mocha][mocha]
* [standard][standard]
* [webpack][webpack]
[babel]: https://babeljs.io/
[c8]: https://www.npmjs.com/package/c8
[eslint-config-standard]: https://github.com/feross/eslint-config-standard
[eslint-plugin-standard]: https://github.com/xjamundx/eslint-plugin-standard
[eslint]: http://eslint.org
[jsdox]: http://jsdox.org/
[karma-coverage]: https://www.npmjs.com/package/karma-coverage
[karma]: http://karma-runner.github.io
[LICENSE]: ./LICENSE
[mocha]: http://mochajs.org/
[standard]: http://standardjs.com
[webpack]: https://webpack.github.io/