Skip to content

Commit 137dd57

Browse files
committed
upgrade to Angular 11 and Node 14
1 parent 53cc35a commit 137dd57

10 files changed

+3425
-3760
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
This repository contains the code of the video course [Ngrx (with NgRx Data) - The Complete Guide](https://angular-university.io/course/ngrx-course).
55

6-
This course repository is updated to Angular v10 and NgRx 8:
6+
This course repository is updated to Angular v11 and NgRx 8:
77

88
![Ngrx (with NgRx Data) - The Complete Guide](https://angular-university.s3-us-west-1.amazonaws.com/course-images/ngrx-v2.png)
99

1010

1111
# Installation pre-requisites
1212

13-
For taking the course we recommend installing Node 12. These are some tutorials to install node in different operating systems:
13+
For taking the course we recommend installing Node 14. These are some tutorials to install node in different operating systems:
1414

1515
- [Install Node and NPM on Windows](https://www.youtube.com/watch?v=8ODS6RM6x7g)
1616
- [Install Node and NPM on Linux](https://www.youtube.com/watch?v=yUdHk-Dk_BY)

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"optimization": true,
3838
"outputHashing": "all",
3939
"sourceMap": false,
40-
"extractCss": true,
4140
"namedChunks": false,
4241
"aot": true,
4342
"extractLicenses": true,

e2e/tsconfig.e2e.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.base.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../out-tsc/e2e",
55
"baseUrl": "./",

package-lock.json

Lines changed: 3377 additions & 3694 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular-devkit/schematics": "^10.0.0",
17-
"@angular/animations": "^10.0.2",
18-
"@angular/cdk": "^10.0.1",
19-
"@angular/common": "^10.0.2",
20-
"@angular/compiler": "^10.0.2",
21-
"@angular/core": "^10.0.2",
22-
"@angular/forms": "^10.0.2",
23-
"@angular/material": "^10.0.1",
24-
"@angular/material-moment-adapter": "^10.0.1",
25-
"@angular/platform-browser": "^10.0.2",
26-
"@angular/platform-browser-dynamic": "^10.0.2",
27-
"@angular/router": "^10.0.2",
16+
"@angular-devkit/schematics": "^11.0.1",
17+
"@angular/animations": "^11.0.0",
18+
"@angular/cdk": "^11.0.0",
19+
"@angular/common": "^11.0.0",
20+
"@angular/compiler": "^11.0.0",
21+
"@angular/core": "^11.0.0",
22+
"@angular/forms": "^11.0.0",
23+
"@angular/material": "^11.0.0",
24+
"@angular/material-moment-adapter": "^11.0.0",
25+
"@angular/platform-browser": "^11.0.0",
26+
"@angular/platform-browser-dynamic": "^11.0.0",
27+
"@angular/router": "^11.0.0",
2828
"@ngrx/data": "^8.0.1",
2929
"@ngrx/effects": "^8.0.1",
3030
"@ngrx/entity": "^8.0.1",
@@ -40,27 +40,27 @@
4040
"zone.js": "~0.10.3"
4141
},
4242
"devDependencies": {
43-
"@angular-devkit/build-angular": "~0.1000.0",
44-
"@angular/cli": "^10.0.0",
45-
"@angular/compiler-cli": "^10.0.2",
46-
"@angular/language-service": "^10.0.2",
43+
"@angular-devkit/build-angular": "~0.1100.1",
44+
"@angular/cli": "^11.0.1",
45+
"@angular/compiler-cli": "^11.0.0",
46+
"@angular/language-service": "^11.0.0",
4747
"@ngrx/schematics": "^8.0.1",
4848
"@types/express": "^4.0.39",
49-
"@types/jasmine": "~2.5.53",
49+
"@types/jasmine": "~3.6.0",
5050
"@types/jasminewd2": "~2.0.2",
5151
"@types/node": "^12.11.1",
52-
"codelyzer": "^5.1.2",
53-
"jasmine-core": "~3.5.0",
52+
"codelyzer": "^6.0.0",
53+
"jasmine-core": "~3.6.0",
5454
"jasmine-spec-reporter": "~5.0.0",
55-
"karma": "~5.0.0",
55+
"karma": "~5.1.1",
5656
"karma-chrome-launcher": "~3.1.0",
5757
"karma-cli": "~1.0.1",
5858
"karma-coverage-istanbul-reporter": "~3.0.2",
59-
"karma-jasmine": "~3.3.0",
59+
"karma-jasmine": "~4.0.0",
6060
"karma-jasmine-html-reporter": "^1.5.0",
6161
"protractor": "~7.0.0",
6262
"ts-node": "~3.2.0",
6363
"tslint": "~6.1.0",
64-
"typescript": "~3.9.5"
64+
"typescript": "~4.0.5"
6565
}
6666
}

src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const routes: Routes = [
4343
imports: [
4444
BrowserModule,
4545
BrowserAnimationsModule,
46-
RouterModule.forRoot(routes),
46+
RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }),
4747
HttpClientModule,
4848
MatMenuModule,
4949
MatIconModule,

src/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.base.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../out-tsc/app",
55
"baseUrl": "./",

src/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.base.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../out-tsc/spec",
55
"baseUrl": "./",

tsconfig.base.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

tsconfig.json

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
/*
2-
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
3-
It is not intended to be used to perform a compilation.
4-
5-
To learn more about this file see: https://angular.io/config/solution-tsconfig.
6-
*/
71
{
8-
"files": [],
9-
"references": [
10-
{
11-
"path": "./src/tsconfig.app.json"
12-
},
13-
{
14-
"path": "./src/tsconfig.spec.json"
15-
}
16-
]
17-
}
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"module": "esnext",
5+
"outDir": "./dist/out-tsc",
6+
"sourceMap": true,
7+
"declaration": false,
8+
"moduleResolution": "node",
9+
"emitDecoratorMetadata": true,
10+
"experimentalDecorators": true,
11+
"target": "es2015",
12+
"typeRoots": [
13+
"node_modules/@types"
14+
],
15+
"lib": [
16+
"es2017",
17+
"dom",
18+
"ES2017.object"
19+
]
20+
}
21+
}

0 commit comments

Comments
 (0)