0.1.0 • Published 9 years ago
vue-cli-karma v0.1.0
vue-cli-karma
Install
This module requires vue-cli to be installed as devDependency.
yarn add vue-cli vue-cli-karma --devUsage
// vue-cli config file: vue.karma.js
const karma = require('vue-cli-karma')
module.exports = {
run(webpackConfig, options) {
karma(webpackConfig, options)
}
}By default it loads karma.config.js in current working directory. You can set karma option to another path:
module.exports = {
karma: './path/to/karma.config.js'
}Check out the example karma.config.js, here you need to install karma-launcher-chrome karma-jasmine jasmine-core as well:
yarn add karma-launcher-phantomjs karma-jasmine jasmine-core --devConfigure npm scripts
{
"scripts": {
"test": "vue build --config vue.karma.js"
}
}Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
vue-cli-karma © egoist, Released under the MIT License. Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin
0.1.0
9 years ago