Build your standalone components using this tiny template.
This template is Vue 2.x only.
This is a project template for vue-cli.
$ npm install -g vue-cli
$ vue init vuejs-tips/vue-component-webpack-template my-component
$ cd my-component
$ npm run dev
$ npm run dist
$ npm run dist:demo
$ npm run demo:open
The generated output in ./dist can be used with node and the browser.
- NOTHING. Just use the global vue-cli
For configuration and detailed explanation on how things work, consult the docs for vue-cli build.
You can fork this repo to create your own boilerplate, and use it with vue-cli
:
vue init your-username/your-template your-component
- Include unit testing
- Correctly generate css in dist