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'
A simple section to describe how to upgrade.
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.
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.
Once generated, just bump everything to the latest version with npm update.
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?
This issue may be dependent on https://github.com/vuejs/vue-cli/issues/1507
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 ?
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.
Most helpful comment
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.