An open API service indexing awesome lists of open source software.

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

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/