Just execute the script with vue-generate.py <component name> to generate a new component, please write the component's name in PascalCase (the tag will be automatically converted to kebab-case).
(The script should be executed in the project's root folder)
- It creates a new .vue file (named as you typed)
- It adds the newly created component to the App.vue file
- Now you're ready to use your new component!
If you want to change the generated component all you need to do is change the component_template string,
For example, you if launch the script as vue-generate.py HelloVue, it will create a new file called HelloVue.vue and import it in the App.vue file. Now you can use the component as <HelloVue></HelloVue> or <hello-vue></hello-vue>
This project is licensed under the MIT License - see the LICENSE file for details