vue-component-generator
v1.2.1
Published
A generator for vue component
Downloads
4
Readme
vue-component-generator
A generator for vue component
Install
npm install vue-component-generator -g
Usage
Init Component
Run command:
vcg <component-name> -p <port> -n
.eg
vcg component-demo // generate a component named component-demo
vcg component-demo -n // generate a component named component-demo with vue 2.0
vcg component-demo -p 8989 // generate a component named component-demo and set the port to 8989, which webpack-dev-server listen to
Install Depandencies
npm install
Start development
npm run dev
Run test
npm run test
Build Component
npm run build