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

There is no official vue-cli update / upgrade guide on cli.vuejs.org/guide #1662

Closed
chengyiuchun opened this issue Jun 23, 2018 · 7 comments
Closed

Comments

@chengyiuchun
Copy link

What problem does this feature solve?

There should be a section in the guide to describe how to upgrade a project generated using older version of vue-cli to the latest version. This search term on Google yeilds no result '(update|upgrade) site:cli.vuejs.org'

What does the proposed API look like?

A simple section to describe how to upgrade.

@yyx990803
Copy link
Member

Unfortunately the old CLI allows you to make arbitrary changes to the config, which makes it near impossible to provide a universally applicable guide on upgrading. If you didn't make any modifications at all, simply copy your src directory over and it should work. Otherwise, read the docs of the new CLI to understand how to apply modifications to the config.

@chengyiuchun
Copy link
Author

Actually this is about the new Vue CLI. For example, there a few dependencies of a project generated by vue cli like babel-core, @vue/cli-service, @vue/cli-plugin-babel. I am looking for the official recommendation on how these should be updated. Should I generate a brand new project with the latest CLI and diff the package.json? Or there is a better way? Thanks.

@yyx990803
Copy link
Member

Once generated, just bump everything to the latest version with npm update.

@motin
Copy link

motin commented Sep 22, 2018

Once generated, just bump everything to the latest version with npm update.

I couldn't find this information in the guide on cli.vuejs.org/guide. Care to re-open this issue until the upgrade instructions are available there?

motin added a commit to motin/vue-cli that referenced this issue Sep 22, 2018
@motin
Copy link

motin commented Sep 22, 2018

This issue may be dependent on #1507

@luzik
Copy link

luzik commented Dec 29, 2018

hmm ...there is new @vue/eslint-config-prettier (4.0.1) but:

$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",
$ npm update
$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",

How to get fresh version ?

@viniciuskneves
Copy link

hmm ...there is new @vue/eslint-config-prettier (4.0.1) but:

$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",
$ npm update
$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",

How to get fresh version ?

vue upgrade. It will handle minor updates by default. If you want major/patch just specify it vue upgrade major.

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

5 participants