0.1.1 • Published 3 years ago

@ashetm/vue-cli-plugin-component-generator v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Vue Component Generator (Javascript & Typescript)

vue-cli 3 plugin to generate vue components

This package will works with typescript and create vue components easily using vue cli.

Installation

  • Install via npm
$ npm i @ashetm/vue-cli-plugin-component-generator
  • Install via vue-cli
$ vue add @ashetm/vue-cli-plugin-component-generator

Usage

  • Invoke to generate a new components:
$ vue invoke  @ashetm/vue-cli-plugin-component-generator

This will prompt to following questions.

? Where's your components's root directory?

By default this will give ./src/components path. But you can decide and type the path you want to generate the component.

? What's your component name?

Here componet name can be defined.

Now it will generate 4 files in the defined directory inside a folder with file name.

file-name.html
file-name.vue
file-name.scss or file-name.sass or file-name.css
file-name.js or file-name.ts