vue-cli-karma

0.1.0 • Public • Published

vue-cli-karma

NPM version NPM downloads Build Status donate

Install

This module requires vue-cli to be installed as devDependency.

yarn add vue-cli vue-cli-karma --dev

Usage

// 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 --dev

Configure npm scripts

{
  "scripts": {
    "test": "vue build --config vue.karma.js"
  }
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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

Readme

Keywords

none

Package Sidebar

Install

npm i vue-cli-karma

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • rem