@lait/cli-vue-generate
v1.2.2
Published
Vue cli template generator
Downloads
3
Readme
Vue component generator for NUXT x LAIT
CLI util for easy generate Vue component
Installation
npm install -g vue-generate-component
Usage
vgc --help
Create new component
vgc -c footer
Will generate 3 files:
footer.ts
import { Vue, Component } from "nuxt-property-decorator";
@Component({
name: "footer",
components: {},
})
export default class Footer extends Vue {}
footer.scss
// add your footer classes here
index.vue
<template>
<span>Footer component</span>
</template>
<script src="./footer.ts"></script>
<style src="./footer.scss" scoped lang="scss"></style>
Create new page
vgc -p home
Will generate 2 files in a folder with:
- home
- index.vue
- index.ts