Skip to content

Instantly share code, notes, and snippets.

@ronscoder
Forked from StephenFluin/try-angular-upgrade.sh
Created March 21, 2017 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronscoder/b9703d5bede031685cca47b31c32bc75 to your computer and use it in GitHub Desktop.
Save ronscoder/b9703d5bede031685cca47b31c32bc75 to your computer and use it in GitHub Desktop.
Give the 2.4.x to 4.0.0-rc upgrade a try!
ng new my-project
cd my-project
# We have a working v2.4.x project now!
ng build -prod
# Let's save a working copy of the 2.4.x project
mv dist dist-2.4.x
# Now let's update to the latest version of Angular
npm install @angular/{animations,common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router}@next @angular/material@latest typescript@latest --save --save-exact
ng build -prod
mv dist dist-4.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment