Skip to content

Instantly share code, notes, and snippets.

@bacarybruno
Created March 10, 2019 17:30
Show Gist options
  • Save bacarybruno/12ac83c5ceb3d23a94bc815f27a6fcee to your computer and use it in GitHub Desktop.
Save bacarybruno/12ac83c5ceb3d23a94bc815f27a6fcee to your computer and use it in GitHub Desktop.
echo "Updating Angular CLI globally."
npm install -g @angular/cli
echo "Updating Angular CLI locally."
npm install @angular/cli
echo "Migrating the configuration to the new angular.json."
ng update @angular/cli
echo "Updating all packages to v6"
ng update @angular/core
echo "Using ng update to identify and update other dependencies."
ng update --all --force
echo "Updating the core framework and CLI to v7"
ng update @angular/cli @angular/core
echo "Setting the correct version of typescript."
npm i -D typescript@3.1.6
echo "Remove deprecated RxJS 6 features using rxjs-tslint auto update rules"
npm install -g rxjs-tslint
rxjs-5-to-6-migrate -p src/tsconfig.app.json
echo "Migration done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment