https://github.com/ashetm/npm-vuegc
https://github.com/ashetm/npm-vuegc
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ashetm/npm-vuegc
- Owner: AsheTM
- Created: 2019-08-28T23:12:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-27T21:04:44.000Z (about 5 years ago)
- Last Synced: 2024-04-26T20:21:49.458Z (about 2 years ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`