Skip to content

Commit bd1fb87

Browse files
committed
upgrade to Angular 9
1 parent 11d4e3b commit bd1fb87

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
This repository contains the code of the [RxJs In Practice Course](https://angular-university.io/course/rxjs-course).
55

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

88
![RxJs In Practice Course](https://s3-us-west-1.amazonaws.com/angular-university/course-images/rxjs-in-practice-course.png)
99

angular.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14+
"aot": true,
1415
"outputPath": "dist",
1516
"index": "src/index.html",
1617
"main": "src/main.ts",
@@ -27,6 +28,12 @@
2728
},
2829
"configurations": {
2930
"production": {
31+
"budgets": [
32+
{
33+
"type": "anyComponentStyle",
34+
"maximumWarning": "6kb"
35+
}
36+
],
3037
"optimization": true,
3138
"outputHashing": "all",
3239
"sourceMap": false,
@@ -122,10 +129,13 @@
122129
"defaultProject": "angular-material-course",
123130
"schematics": {
124131
"@schematics/angular:component": {
125-
"styleext": "scss"
132+
"style": "scss"
126133
},
127134
"@schematics/angular:directive": {
128135
"prefix": ""
129136
}
137+
},
138+
"cli": {
139+
"analytics": "cfcb7608-e88b-4213-8e97-1621fa16315e"
130140
}
131141
}

server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ app.route('/api/courses/:id').put(saveCourse);
2121

2222

2323

24-
const httpServer = app.listen(9000, () => {
24+
const httpServer:any = app.listen(9000, () => {
2525
console.log("HTTP REST API Server running at http://localhost:" + httpServer.address().port);
2626
});
2727

src/tsconfig.app.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
"baseUrl": "./",
66
"types": []
77
},
8-
"exclude": [
9-
"test.ts",
10-
"**/*.spec.ts"
8+
"files": [
9+
"main.ts",
10+
"polyfills.ts"
11+
],
12+
"include": [
13+
"src/**/*.d.ts"
1114
]
1215
}

0 commit comments

Comments
 (0)