Skip to content

Instantly share code, notes, and snippets.

@mhartington
Created June 24, 2019 14:02
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 mhartington/77ca4595af6198aac66dcab77e256e8f to your computer and use it in GitHub Desktop.
Save mhartington/77ca4595af6198aac66dcab77e256e8f to your computer and use it in GitHub Desktop.
Pure NG7 to NG8
$ ng update --force --verbose @angular/core @angular/cli
Locating potential npmrc files:
Trying '/Users/mhartington/n/etc/npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/.npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/mhartington/myNg7App/.npmrc'...not found.
Updating package.json with dependency @angular/language-service @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/compiler-cli @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/common @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/core @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/compiler @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/platform-browser @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/animations @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency zone.js @ "0.9.1" (was "0.8.29")...
Updating package.json with dependency @angular/forms @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/router @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/cli @ "8.0.3" (was "7.3.9")...
Updating package.json with dependency rxjs @ "6.5.2" (was "6.3.3")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency typescript @ "3.4.5" (was "3.2.4")...
Updating package.json with dependency @angular-devkit/build-angular @ "0.800.3" (was "0.13.9")...
UPDATE package.json (1308 bytes)
> @angular/cli@8.0.3 postinstall /Users/mhartington/myNg7App/node_modules/@angular/cli
> node ./bin/postinstall/script.js
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
added 56 packages from 69 contributors, removed 129 packages, updated 96 packages, moved 7 packages and audited 19004 packages in 51.403s
found 0 vulnerabilities
** Executing migrations for package '@angular/cli' **
RENAME src/browserslist => /browserslist
UPDATE tslint.json (1616 bytes)
UPDATE package.json (1309 bytes)
UPDATE src/polyfills.ts (2838 bytes)
UPDATE tsconfig.json (470 bytes)
UPDATE src/tsconfig.app.json (166 bytes)
UPDATE src/tsconfig.spec.json (256 bytes)
added 4 packages from 7 contributors, updated 1 package and audited 19010 packages in 7.934s
found 0 vulnerabilities
** Executing migrations for package '@angular/core' **
------ Static Query Migration ------
With Angular version 8, developers need to
explicitly specify the timing of ViewChild and
ContentChild queries. Read more about this here:
https://v8.angular.io/guide/static-query-migration
------------------------------------------------
----------------------------------------------------------------------------------------------------------
Ionic NG7 to Ionic NG8
$ ng update --force --verbose @angular/core @angular/cli
Locating potential npmrc files:
Trying '/Users/mhartington/n/etc/npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/.npmrc'...not found.
Trying '/Users/mhartington/.npmrc'...found.
Trying '/Users/mhartington/myIonNg7App/.npmrc'...not found.
Updating package.json with dependency @angular/compiler @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/language-service @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/compiler-cli @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/cli @ "8.0.3" (was "7.3.9")...
Updating package.json with dependency @angular/common @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular-devkit/build-angular @ "0.800.3" (was "0.13.9")...
Updating package.json with dependency @angular/core @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/forms @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency zone.js @ "0.9.1" (was "0.8.29")...
Updating package.json with dependency @angular/router @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/platform-browser @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "8.0.2" (was "7.2.15")...
Updating package.json with dependency typescript @ "3.4.5" (was "3.1.6")...
UPDATE package.json (1762 bytes)
> @angular/cli@8.0.3 postinstall /Users/mhartington/myIonNg7App/node_modules/@angular/cli
> node ./bin/postinstall/script.js
npm WARN @angular/http@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/http@7.2.15 requires a peer of @angular/platform-browser@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0-dev.201906171955.ecdd0e2 requires a peer of rxjs@~6.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/compiler@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@4.5.0 requires a peer of @angular/core@>=2.3.1 <8.0.0 || >7.0.0-beta <8.0.0 but none is installed. You must install peer dependencies yourself.
added 63 packages from 69 contributors, removed 129 packages, updated 95 packages, moved 7 packages and audited 29663 packages in 41.585s
found 0 vulnerabilities
** Executing migrations for package '@angular/core' **
------ Static Query Migration ------
With Angular version 8, developers need to
explicitly specify the timing of ViewChild and
ContentChild queries. Read more about this here:
https://v8.angular.io/guide/static-query-migration
------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment