Skip to content

Commit 6188de9

Browse files
Ismael Ramosiramos
authored andcommitted
feat(angular9): update files to angular 9
1 parent 12514ef commit 6188de9

File tree

9 files changed

+5539
-3646
lines changed

9 files changed

+5539
-3646
lines changed

angular.json

Lines changed: 41 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
"newProjectRoot": "projects",
55
"projects": {
66
"angularexampleapp": {
7+
"i18n": {
8+
"locales": {
9+
"en": {
10+
"translation": "src/i18n/messages.en.xlf",
11+
"baseHref": "/"
12+
},
13+
"es": "src/i18n/messages.es.xlf"
14+
}
15+
},
716
"projectType": "application",
817
"schematics": {
918
"@schematics/angular:component": {
@@ -42,10 +51,14 @@
4251
},
4352
"configurations": {
4453
"en": {
54+
"budgets": [
55+
{
56+
"type": "anyComponentStyle",
57+
"maximumWarning": "6kb"
58+
}
59+
],
4560
"outputPath": "dist/browser/",
46-
"baseHref": "/",
4761
"i18nFile": "src/i18n/messages.en.xlf",
48-
"i18nFormat": "xlf",
4962
"i18nLocale": "en",
5063
"i18nMissingTranslation": "error",
5164
"assets": [
@@ -67,11 +80,16 @@
6780
]
6881
},
6982
"es": {
70-
"outputPath": "dist/browser/es/",
71-
"baseHref": "/es/",
72-
"i18nFile": "src/i18n/messages.es.xlf",
73-
"i18nFormat": "xlf",
74-
"i18nLocale": "es",
83+
"budgets": [
84+
{
85+
"type": "anyComponentStyle",
86+
"maximumWarning": "6kb"
87+
}
88+
],
89+
"localize": [
90+
"es"
91+
],
92+
"outputPath": "dist/browser",
7593
"i18nMissingTranslation": "error",
7694
"assets": [
7795
{
@@ -128,12 +146,14 @@
128146
"type": "initial",
129147
"maximumWarning": "2mb",
130148
"maximumError": "5mb"
149+
},
150+
{
151+
"type": "anyComponentStyle",
152+
"maximumWarning": "6kb"
131153
}
132154
],
133155
"outputPath": "dist/browser/",
134-
"baseHref": "/",
135156
"i18nFile": "src/i18n/messages.en.xlf",
136-
"i18nFormat": "xlf",
137157
"i18nLocale": "en",
138158
"i18nMissingTranslation": "error"
139159
},
@@ -144,12 +164,14 @@
144164
"with": "src/environments/environment.prod.ts"
145165
}
146166
],
167+
"localize": [
168+
"es"
169+
],
147170
"optimization": true,
148171
"outputHashing": "all",
149172
"sourceMap": false,
150173
"extractCss": true,
151174
"namedChunks": false,
152-
"aot": true,
153175
"extractLicenses": true,
154176
"vendorChunk": false,
155177
"buildOptimizer": true,
@@ -158,13 +180,13 @@
158180
"type": "initial",
159181
"maximumWarning": "2mb",
160182
"maximumError": "5mb"
183+
},
184+
{
185+
"type": "anyComponentStyle",
186+
"maximumWarning": "6kb"
161187
}
162188
],
163-
"outputPath": "dist/browser/es/",
164-
"baseHref": "/es/",
165-
"i18nFile": "src/i18n/messages.es.xlf",
166-
"i18nFormat": "xlf",
167-
"i18nLocale": "es",
189+
"outputPath": "dist/browser",
168190
"i18nMissingTranslation": "error"
169191
}
170192
}
@@ -243,6 +265,7 @@
243265
},
244266
"configurations": {
245267
"production-en": {
268+
"optimization": true,
246269
"outputPath": "dist/server/en",
247270
"i18nFile": "src/i18n/messages.en.xlf",
248271
"i18nFormat": "xlf",
@@ -256,6 +279,7 @@
256279
]
257280
},
258281
"production-es": {
282+
"optimization": true,
259283
"outputPath": "dist/server/es",
260284
"i18nFile": "src/i18n/messages.es.xlf",
261285
"i18nFormat": "xlf",
@@ -314,7 +338,8 @@
314338
"configurations": {
315339
"production": {
316340
"project": "projects/ngx-example-library/ng-package.prod.json"
317-
}
341+
, "tsConfig": "projects/ngx-example-library/tsconfig.lib.prod.json"
342+
}
318343
}
319344
},
320345
"test": {

0 commit comments

Comments
 (0)