Skip to content

Commit 57593c5

Browse files
committed
upgrade to Angular 9
1 parent dd754d9 commit 57593c5

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

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,
@@ -119,10 +126,13 @@
119126
"schematics": {
120127
"@schematics/angular:component": {
121128
"prefix": "",
122-
"styleext": "css"
129+
"style": "css"
123130
},
124131
"@schematics/angular:directive": {
125132
"prefix": ""
126133
}
134+
},
135+
"cli": {
136+
"analytics": "55efd9b2-8578-4da2-aa7b-dc2f6abb6283"
127137
}
128138
}

server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ app.route('/api/lessons')
1818

1919

2020
// launch an HTTP Server
21-
const httpServer = app.listen(9000, () => {
21+
const httpServer:any = app.listen(9000, () => {
2222
console.log("HTTP Server running at http://localhost:" + httpServer.address().port);
2323
});
2424

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)