An open API service indexing awesome lists of open source software.

https://github.com/ashetm/npm-vuegc


https://github.com/ashetm/npm-vuegc

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

### VueGC

CLI command to generate a Vue component for VueJS MVC (not instance) in /src/ folder

`vuegc --name HelloWord.vue [--scoped [true|false] [--style css]]`

Required flag(s):

* --name: Name of the component

Optional flag(s):

* --scoped: Boolean for scoped tag on style inside the file.vue [Default: true]

* --style: Pre-processor CSS [Default: css] [Value supported: css, scss, stylus]

It generates component file .vue like this:

``` vue

Component Helloworld generated by VueGC

export default {
name: "Helloworld",
props: { },
data() { },
methods() { }
}

#Helloworld{
font-size: 16px;
line-height: 150%;
}
span{ font-weight: bold; }
a{ font-style: italic; }

```

For help section, tap `vuegc`