Skip to content

Commit 97af941

Browse files
committed
upgrade to Angular 10
1 parent d378b2a commit 97af941

10 files changed

+5593
-3566
lines changed
File renamed without changes.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
This repository contains the code of the [Angular Testing Course](https://angular-university.io/course/angular-testing-course).
55

6-
This course repository is updated to Angular v9, and there is a package-lock.json file available, for avoiding semantic versioning installation issues.
6+
This course repository is updated to Angular v10, and there is a package-lock.json file available, for avoiding semantic versioning installation issues.
77

88
![Angular Testing Course](https://s3-us-west-1.amazonaws.com/angular-university/course-images/angular-testing-small.png)
99

e2e/tsconfig.e2e.json

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

package-lock.json

+5,522-3,514
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+27-27
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
},
1919
"private": true,
2020
"dependencies": {
21-
"@angular/animations": "9.0.1",
22-
"@angular/cdk": "^9.0.0",
23-
"@angular/common": "9.0.1",
24-
"@angular/compiler": "9.0.1",
25-
"@angular/core": "9.0.1",
26-
"@angular/forms": "9.0.1",
27-
"@angular/material": "^9.0.0",
28-
"@angular/material-moment-adapter": "9.0.0",
29-
"@angular/platform-browser": "9.0.1",
30-
"@angular/platform-browser-dynamic": "9.0.1",
31-
"@angular/router": "9.0.1",
21+
"@angular/animations": "10.0.2",
22+
"@angular/cdk": "^10.0.1",
23+
"@angular/common": "10.0.2",
24+
"@angular/compiler": "10.0.2",
25+
"@angular/core": "10.0.2",
26+
"@angular/forms": "10.0.2",
27+
"@angular/material": "^10.0.1",
28+
"@angular/material-moment-adapter": "10.0.1",
29+
"@angular/platform-browser": "10.0.2",
30+
"@angular/platform-browser-dynamic": "10.0.2",
31+
"@angular/router": "10.0.2",
3232
"body-parser": "^1.18.3",
3333
"core-js": "^2.4.1",
3434
"cypress": "^3.2.0",
@@ -37,32 +37,32 @@
3737
"moment": "^2.22.2",
3838
"npm-run-all": "^4.1.5",
3939
"rxjs": "6.5.4",
40-
"tslib": "^1.10.0",
41-
"zone.js": "~0.10.2"
40+
"tslib": "^2.0.0",
41+
"zone.js": "~0.10.3"
4242
},
4343
"devDependencies": {
44-
"@angular-devkit/build-angular": "~0.900.2",
45-
"@angular/cli": "^9.0.2",
46-
"@angular/compiler-cli": "9.0.1",
47-
"@angular/language-service": "9.0.1",
44+
"@angular-devkit/build-angular": "~0.1000.0",
45+
"@angular/cli": "^10.0.0",
46+
"@angular/compiler-cli": "10.0.2",
47+
"@angular/language-service": "10.0.2",
4848
"@cypress/webpack-preprocessor": "^4.0.3",
4949
"@types/express": "^4.0.39",
5050
"@types/jasmine": "~2.5.53",
5151
"@types/jasminewd2": "~2.0.2",
5252
"@types/node": "^12.11.1",
5353
"codelyzer": "^5.1.2",
54-
"jasmine-core": "~2.6.2",
55-
"jasmine-spec-reporter": "~4.1.0",
56-
"karma": "^4.1.0",
57-
"karma-chrome-launcher": "~2.1.1",
54+
"jasmine-core": "~3.5.0",
55+
"jasmine-spec-reporter": "~5.0.0",
56+
"karma": "~5.0.0",
57+
"karma-chrome-launcher": "~3.1.0",
5858
"karma-cli": "~1.0.1",
59-
"karma-coverage-istanbul-reporter": "^1.2.1",
60-
"karma-jasmine": "~1.1.0",
61-
"karma-jasmine-html-reporter": "^0.2.2",
62-
"protractor": "^6.0.0",
59+
"karma-coverage-istanbul-reporter": "~3.0.2",
60+
"karma-jasmine": "~3.3.0",
61+
"karma-jasmine-html-reporter": "^1.5.0",
62+
"protractor": "~7.0.0",
6363
"start-server-and-test": "^1.9.1",
6464
"ts-node": "~3.2.0",
65-
"tslint": "~5.7.0",
66-
"typescript": "3.7.5"
65+
"tslint": "~6.1.0",
66+
"typescript": "3.9.5"
6767
}
6868
}

src/tsconfig.app.json

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

src/tsconfig.spec.json

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

tsconfig.base.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
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+
}

tsconfig.json

+16-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
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+
*/
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-
}
8+
"files": [],
9+
"references": [
10+
{
11+
"path": "./src/tsconfig.app.json"
12+
},
13+
{
14+
"path": "./src/tsconfig.spec.json"
15+
}
16+
]
17+
}

tslint.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"check-space"
1212
],
1313
"curly": true,
14+
"deprecation": {
15+
"severity": "warning"
16+
},
1417
"eofline": true,
1518
"forin": true,
1619
"import-blacklist": [
@@ -69,7 +72,6 @@
6972
"no-trailing-whitespace": true,
7073
"no-unnecessary-initializer": true,
7174
"no-unused-expression": true,
72-
"no-use-before-declare": true,
7375
"no-var-keyword": true,
7476
"object-literal-sort-keys": false,
7577
"one-line": [

0 commit comments

Comments
 (0)