Awesome
generator-vue-component
<p align="center"> <img src="generators/app/templates/src/assets/vue.png" alt="yo" title="yo"/> </p>π¦ Yeoman generator to build your own Vue.js components
Support
- Vue.js 2 =>
generator-vue-component@>=2.0.0
[master] - Vue.js 1 =>
generator-vue-component@1.0.0
Installation
- First, install Yeoman and generator-vue-component using npm (we assume you have pre-installed node.js).
$ npm install -g yo
$ npm install -g generator-vue-component
- Create your project directory and access it.
$ mkdir my-awesome-component
$ cd my-awesome-component
- Then generate your new project:
yo vue-component
Scaffolding
ββββdocs/
ββββApp.vue
ββββmain.js
ββββsrc/
ββββassets/
ββββvue.png
ββββHelloWorld.vue
ββββindex.js
ββββ.babelrc
ββββ.editorconfig
ββββ.eslintignore
ββββ.eslintrc.
ββββ.gitignore
ββββ.npmignore
ββββLICENSE
ββββpackage.json
ββββREADME.md
ββββwebpack.config.js
Development Setup
# install dependencies
$ npm install
# dev mode
$ npm run dev
# build component and get production release
$ npm run build
TODO
- Jest Integration [help wanted π]
- Docs production build
License
Style
β¨οΈ with β€οΈ by @ianaya89