Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 719 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 719 Bytes

vue-component-generator

A generator for vue component, support Vue1.X and Vue2.X

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 Dependencies

npm install

Start Development

npm run dev

Run Test

npm run test

Build Component

npm run build