Skip to content
A generator for vue component
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

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
You can’t perform that action at this time.