vue-generate-component icon indicating copy to clipboard operation
vue-generate-component copied to clipboard

Specify destination folder

Open stefanoamorelli opened this issue 7 years ago • 4 comments

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!

stefanoamorelli avatar Apr 01 '18 21:04 stefanoamorelli

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. : )

sheriffderek avatar Nov 18 '18 01:11 sheriffderek

Sure.

NetanelBasal avatar Oct 13 '19 06:10 NetanelBasal

@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.

akash-cbre avatar Jan 18 '20 07:01 akash-cbre

You can create a PR :)

NetanelBasal avatar Jan 18 '20 16:01 NetanelBasal