UNPKG

make-components

Version:

a tool create components in Vue app in the required folder

33 lines (24 loc) 800 B
# Make Components Make components is a Node CLI for creating component folder in Vue projects in specific folders. ## Installation ```bash npm install --global make-components ``` ## Usage ##### inside `frontendDevelopment` run: ```bash make-component file-name ``` Then it will generate the common lines `frontendDevelopment/src/vue/global-components/file-name/file-name.vue` Inside `frontendDevelopment/src/vue/registry/imports.js` it will generate ``` export default { VueFileName: import(/* webpackChunkName: "global-components/file-name" */ '../global-components/file-name/file-name'), } ``` ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. ## License [MIT](https://choosealicense.com/licenses/mit/)