vue-cli 3 plugin to generate vue components
This package will works with typescript and create vue components easily using vue cli.
- 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
- 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