Skip to content

Add new script 'ng update' #7375

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
yokots opened this issue Aug 13, 2017 · 4 comments
Closed

Add new script 'ng update' #7375

yokots opened this issue Aug 13, 2017 · 4 comments
Labels
feature Issue that requests a new feature type: RFC / discussion / question

Comments

@yokots
Copy link
Contributor

yokots commented Aug 13, 2017

Feature Request

- [X] feature request

Description

When update the version of angular/cli, use ng update to update the configuration files like tsling.json and tsconfig.json etc. or and postinstall hooks to auto update the configuration files.

@BurningDog
Copy link

That would be great, but any of these things could have been manually changed. What if the author wants those changes preserved? Then any time angular-cli is upgraded their changes would be overwritten.

Currently when I upgrade angular-cli, I generate an entirely new project structure and then compare every file I can find against my own files, including:

  • versions in package.json
  • new packages in packages.json
  • .angular-cli.json
  • karma.conf.js
  • protractor.conf.js
  • tsconfig.json
  • tslint.json
  • src/polyfills.ts
  • src/test.ts
  • src/tsconfig.app.json
  • src/tsconfig.spec.json

It's some manual work but I'm not sure how this could be automatically done.

@nekkon
Copy link

nekkon commented Aug 18, 2017

There are many issues created from developers that do not update their apps properly, probably because they think that just changing the version in package.json is enough. There is #7334 and many more issues because of this.

@filipesilva
Copy link
Contributor

This is something that we talk about every now and then... It's true that a lot of issues are due to bad upgrades. Configuration items like the ones listed by @BurningDog could be upgraded automatically. A health check would also be nice, like verifying incompatible options or packages aren't set.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Issue that requests a new feature type: RFC / discussion / question
Projects
None yet
Development

No branches or pull requests

5 participants