Skip to content

feat: implement vue upgrade #2428

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

Merged
merged 3 commits into from
Oct 30, 2018
Merged

feat: implement vue upgrade #2428

merged 3 commits into from
Oct 30, 2018

Conversation

haoqunjiang
Copy link
Member

closes #1507

TODOs:

  • Add tests
  • Implement plugin upgrade hook


function getMaxSatisfying (packageName, range) {
let version = JSON.parse(
execa.shellSync(`npm view ${packageName}@${range} version --json`).stdout
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if npm is not installed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But how is it possible?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To give you one example, you can install node.js on Windows without npm:
npm

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...but then you can't really run a vue-cli project, so you have bigger problems than vue upgrade not working.

@haoqunjiang haoqunjiang merged commit 7744889 into vuejs:dev Oct 30, 2018
@pksunkara
Copy link
Contributor

There's no documentation regarding this.

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

Successfully merging this pull request may close these issues.

Command: vue upgrade
4 participants