A generator for vue component, support Vue1.X and Vue2.X
npm install vue-component-generator -g
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
npm install
npm run dev
npm run test
npm run build