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

If there will be a version-controlling script? #1662

Closed
Cyame opened this issue Jul 21, 2020 · 1 comment
Closed

If there will be a version-controlling script? #1662

Cyame opened this issue Jul 21, 2020 · 1 comment

Comments

@Cyame
Copy link

Cyame commented Jul 21, 2020

What problem does this feature solve?

I really love the features of vue2.0 and also heard of some fascinating updates in vue3.0 program. So I'd like to know would you keep the version of both 2 and 3, or 3 is a replacement of 2?
Actually, some great projects are powered by 2.0 and there are also some project based on 3.0. So it's hard for me to make a choice in the global environment.
Now, a trending solution of that is to build two local env of 2 and 3 with vue-cli as well, then put them into the $PATH with name modified. To be honest, it's not a good idea for it will manually change the executable file's name, which will bring some potential bugs in my opinion.

What does the proposed API look like?

So if you want to keep both the versions, I suggest for a script like python in Windows platform that we could use py -2 and py -3 to select base version from the global environment. Developer could use vue-cli -2 init webpack project and also vue-cli -3 create project or something like that.

Or if the 2.0 won't be maintained after a powerful 3.0 is done?

Appreciate.

@yyx990803
Copy link
Member

See vuejs/vue-cli#5637

You will be able to select Vue 2/3 when you create a new project via vue-cli once the PR is merged.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants