vue-cli-plugin-vue-component-generator

0.1.7 • Public • Published

Vue Component Generator (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 vue-cli-plugin-vue-component-generator
  • Install via yarn
    $ yarn add vue-cli-plugin-vue-component-generator
  • Install via vue-cli
$ vue add vue-cli-plugin-vue-component-generator

Usage

  • Invoke to generate a new components:
$ vue invoke vue-cli-plugin-vue-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 new components's name? 

Here componet name can be defined.

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

file-name.templete.html
file-name.vue
file-name.scss

Package Sidebar

Install

npm i vue-cli-plugin-vue-component-generator

Weekly Downloads

10

Version

0.1.7

License

MIT

Unpacked Size

5.3 kB

Total Files

11

Last publish

Collaborators

  • usb