Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow --preset to accept a file path #1068

Closed
JohnnyCrazy opened this issue Apr 3, 2018 · 1 comment
Closed

Allow --preset to accept a file path #1068

JohnnyCrazy opened this issue Apr 3, 2018 · 1 comment

Comments

@JohnnyCrazy
Copy link

What problem does this feature solve?

I want to test my local preset-repository and it would be a shame if I had to push everytime. So, for testing and general purposes, it would be nice to also load presets by specifying a path to a local file.

What does the proposed API look like?

so we could either fallback if the preset name is not found, then we could go for:

vue create my_app --preset preset.json

or a more specialized way:

vue create my_app --preset file:preset.json or even vue create my_app --preset-file preset.json

The implementation it self is rather short. When there is an API decision, I could go for a PR.

@yyx990803
Copy link
Member

I think we can simply assume it's a file if the value ends in .json. Open to a PR.

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

No branches or pull requests

3 participants