Skip to content

Commit 8b39ac8

Browse files
committed
upgrade to Angular 9
1 parent 6888532 commit 8b39ac8

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

angular.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
"newProjectRoot": "projects",
55
"projects": {
66
"angular-course": {
7+
"i18n": {
8+
"locales": {
9+
"fr": {
10+
"translation": "src/locale/messages.fr.xlf",
11+
"baseHref": ""
12+
}
13+
}
14+
},
715
"root": "",
816
"sourceRoot": "src",
917
"projectType": "application",
@@ -13,6 +21,7 @@
1321
"build": {
1422
"builder": "@angular-devkit/build-angular:browser",
1523
"options": {
24+
"aot": true,
1625
"outputPath": "dist/angular-course",
1726
"index": "src/index.html",
1827
"main": "src/main.ts",
@@ -39,6 +48,12 @@
3948
},
4049
"configurations": {
4150
"production": {
51+
"budgets": [
52+
{
53+
"type": "anyComponentStyle",
54+
"maximumWarning": "6kb"
55+
}
56+
],
4257
"fileReplacements": [
4358
{
4459
"replace": "src/environments/environment.ts",
@@ -57,9 +72,14 @@
5772
},
5873
"fr": {
5974
"aot": true,
75+
"budgets": [
76+
{
77+
"type": "anyComponentStyle",
78+
"maximumWarning": "6kb"
79+
}
80+
],
6081
"outputPath": "dist/angular-course-fr/",
6182
"i18nFile": "src/locale/messages.fr.xlf",
62-
"i18nFormat": "xlf",
6383
"i18nLocale": "fr",
6484
"i18nMissingTranslation": "ignore"
6585
}
@@ -147,5 +167,8 @@
147167
}
148168
}
149169
},
150-
"defaultProject": "angular-course"
170+
"defaultProject": "angular-course",
171+
"cli": {
172+
"analytics": "e878a578-eb4f-4c7c-bbaf-6f0c4ac42135"
173+
}
151174
}

src/polyfills.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/***************************************************************************************************
2+
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
3+
*/
4+
import '@angular/localize/init';
15
/**
26
* This file includes polyfills needed by Angular and is loaded before the app.
37
* You can add your own extra polyfills to this file.

src/tsconfig.app.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
"outDir": "../out-tsc/app",
55
"types": []
66
},
7-
"exclude": [
8-
"test.ts",
9-
"**/*.spec.ts"
7+
"files": [
8+
"main.ts",
9+
"polyfills.ts"
10+
],
11+
"include": [
12+
"src/**/*.d.ts"
1013
]
1114
}

0 commit comments

Comments
 (0)