Skip to content

setup my own default preset #1455

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

Closed
komushi opened this issue Jun 3, 2018 · 5 comments
Closed

setup my own default preset #1455

komushi opened this issue Jun 3, 2018 · 5 comments

Comments

@komushi
Copy link

komushi commented Jun 3, 2018

What problem does this feature solve?

The default preset has babel and eslint included. What if I would like to have a different default preset? I prefer to achieve this instead of the my-default preset as it is not possible to create one without creating a new project.

Vue CLI v3.0.0-beta.15
? Please pick a preset: 
❯ default (babel, eslint) 
  Manually select features 

What does the proposed API look like?

Vue CLI v3.0.0-beta.15
? Please pick a preset: 
❯ default (babel, eslint, router) 
  Manually select features 
@Akryum
Copy link
Member

Akryum commented Jun 4, 2018

You can save your feature selection as custom presets which will then be available in this selection step.

@Akryum Akryum closed this as completed Jun 4, 2018
@komushi
Copy link
Author

komushi commented Jun 17, 2018

Please correct me if I got it wrong - currently it is not possible to create custom presets without creating new projects

@Akryum
Copy link
Member

Akryum commented Jun 17, 2018

Yes, but at some point you will create a new project using this preset anyway, right?

@komushi
Copy link
Author

komushi commented Jun 17, 2018

You are right. I am creating my own vue-cli-plugin which needs a certain preset. The plug-in will be used by new users of vue. So it will be friendly to have the preset beforehand.

@Akryum
Copy link
Member

Akryum commented Jun 17, 2018

You can create a preset as a json file and then use it to create new projects on multiple computers. You can also put in a git repository. See the docs.

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

No branches or pull requests

2 participants