vue-standalone-component
Vuejs standalone component template using karma for testing
Build your standalone components using this tiny template.
This template is Vue 2.x only.
Usage
This is a project template for vue-cli.
$ npm install -g vue-cli$ vue init InCuca/vue-standalone-component my-component$ cd my-component$ npm install$ npm run serve
The generated output in ./dist can be used with node and the browser.
PS: to build to UMD run npm run build:umd
What's Included
- Karma for testing
- Demo and documentation page from vue-styleguidist
- Release it! support
- Babel and ESLint
Linting
$ npm run lint
Testing & Test Coverage
$ npm run test$ npm run test:watch$ npm run test:cov
Building
ES6 Modules / CommonJS
$ npm run build
; Vue;
UMD
$ npm run build:umd