Skip to content

lakb248/vue-component-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A generator for vue component

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages