@lait/cli-vue-generate

1.2.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @lait/cli-vue-generate

Weekly Downloads

1

Version

1.2.2

License

ISC

Unpacked Size

16.6 kB

Total Files

17

Last publish

Collaborators

  • jannilaslait
  • nickfrederiksen
  • chrier
  • andersfr
  • jakoblait
  • laitadmin
  • laitsoeren
  • andreasheise