Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

Specify destination folder #13

Open
stefanoamorelli opened this issue Apr 1, 2018 · 4 comments
Open

Specify destination folder #13

stefanoamorelli opened this issue Apr 1, 2018 · 4 comments

Comments

@stefanoamorelli
Copy link

Hey, your package rocks! 💯

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!

@sheriffderek
Copy link

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

@NetanelBasal
Copy link
Owner

Sure.

@akash-cbre
Copy link

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

@NetanelBasal
Copy link
Owner

You can create a PR :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants