vue-generate-component
vue-generate-component copied to clipboard
Specify destination folder
Hey, your package rocks! :100:
Just wondering if you would accept a PR that implements a destination folder option for the generated .vue
I would use that feature since I wish to use 'vgc' inside package.json scripts such as:
... "scripts": { "component" : "vgc process.env.name --dest=./assets/js/" } ...
And call it like: npm run component --name=Home
Hope it was clear enough!
I assumed that the command would know to put the component in the 'components' folder. Maybe unreasonable - but the terminal gave no feedback / so I wondered if it just didn't work at first. My second thought was to vgc --h - and I expected to see a place to set the destination. If I could run the command from the root - that would be ideal. : )
Sure.
@NetanelBasal - Sir, Vue generate component rocks. Requesting you to push an update for destination folder option.
Currently all the generated vue component goes inside the src folder.
You can create a PR :)