]>
Commit | Line | Data |
---|---|---|
54c3a22f C |
1 | { |
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
3 | "version": 1, | |
4 | "newProjectRoot": "projects", | |
5 | "projects": { | |
6 | "PeerTube": { | |
7 | "root": "", | |
8 | "sourceRoot": "src", | |
9 | "projectType": "application", | |
361dcebc | 10 | "i18n": { |
8cc56c7f C |
11 | "sourceLocale": { |
12 | "code": "en", | |
13 | "baseHref": "/client/en-US/" | |
14 | }, | |
361dcebc | 15 | "locales": { |
520745bf | 16 | "ar": { |
d10538b4 C |
17 | "translation": "src/locale/angular.ar.xlf", |
18 | "baseHref": "/client/ar/" | |
520745bf | 19 | }, |
361dcebc C |
20 | "hu": { |
21 | "translation": "src/locale/angular.hu-HU.xlf", | |
8cc56c7f | 22 | "baseHref": "/client/hu-HU/" |
361dcebc C |
23 | }, |
24 | "th": { | |
25 | "translation": "src/locale/angular.th-TH.xlf", | |
8cc56c7f | 26 | "baseHref": "/client/th-TH/" |
361dcebc C |
27 | }, |
28 | "fi": { | |
29 | "translation": "src/locale/angular.fi-FI.xlf", | |
8cc56c7f | 30 | "baseHref": "/client/fi-FI/" |
361dcebc C |
31 | }, |
32 | "nl": { | |
33 | "translation": "src/locale/angular.nl-NL.xlf", | |
8cc56c7f | 34 | "baseHref": "/client/nl-NL/" |
361dcebc C |
35 | }, |
36 | "gd": { | |
37 | "translation": "src/locale/angular.gd.xlf", | |
8cc56c7f | 38 | "baseHref": "/client/gd/" |
361dcebc C |
39 | }, |
40 | "el": { | |
41 | "translation": "src/locale/angular.el-GR.xlf", | |
8cc56c7f | 42 | "baseHref": "/client/el-GR/" |
361dcebc C |
43 | }, |
44 | "es": { | |
45 | "translation": "src/locale/angular.es-ES.xlf", | |
8cc56c7f | 46 | "baseHref": "/client/es-ES/" |
361dcebc | 47 | }, |
2a39506c C |
48 | "oc": { |
49 | "translation": "src/locale/angular.oc.xlf", | |
50 | "baseHref": "/client/oc/" | |
51 | }, | |
361dcebc C |
52 | "pt": { |
53 | "translation": "src/locale/angular.pt-BR.xlf", | |
8cc56c7f | 54 | "baseHref": "/client/pt-BR/" |
361dcebc C |
55 | }, |
56 | "pt-PT": { | |
57 | "translation": "src/locale/angular.pt-PT.xlf", | |
8cc56c7f | 58 | "baseHref": "/client/pt-PT/" |
361dcebc C |
59 | }, |
60 | "sv": { | |
61 | "translation": "src/locale/angular.sv-SE.xlf", | |
8cc56c7f | 62 | "baseHref": "/client/sv-SE/" |
361dcebc C |
63 | }, |
64 | "pl": { | |
65 | "translation": "src/locale/angular.pl-PL.xlf", | |
8cc56c7f | 66 | "baseHref": "/client/pl-PL/" |
361dcebc C |
67 | }, |
68 | "ru": { | |
69 | "translation": "src/locale/angular.ru-RU.xlf", | |
8cc56c7f | 70 | "baseHref": "/client/ru-RU/" |
361dcebc C |
71 | }, |
72 | "zh-Hans": { | |
73 | "translation": "src/locale/angular.zh-Hans-CN.xlf", | |
8cc56c7f | 74 | "baseHref": "/client/zh-Hans-CN/" |
361dcebc C |
75 | }, |
76 | "zh-Hant": { | |
77 | "translation": "src/locale/angular.zh-Hant-TW.xlf", | |
8cc56c7f | 78 | "baseHref": "/client/zh-Hant-TW/" |
361dcebc C |
79 | }, |
80 | "fr": { | |
81 | "translation": "src/locale/angular.fr-FR.xlf", | |
8cc56c7f | 82 | "baseHref": "/client/fr-FR/" |
361dcebc C |
83 | }, |
84 | "ja": { | |
85 | "translation": "src/locale/angular.ja-JP.xlf", | |
8cc56c7f | 86 | "baseHref": "/client/ja-JP/" |
361dcebc C |
87 | }, |
88 | "eu": { | |
89 | "translation": "src/locale/angular.eu-ES.xlf", | |
8cc56c7f | 90 | "baseHref": "/client/eu-ES/" |
361dcebc C |
91 | }, |
92 | "ca": { | |
93 | "translation": "src/locale/angular.ca-ES.xlf", | |
8cc56c7f | 94 | "baseHref": "/client/ca-ES/" |
361dcebc C |
95 | }, |
96 | "cs": { | |
97 | "translation": "src/locale/angular.cs-CZ.xlf", | |
8cc56c7f | 98 | "baseHref": "/client/cs-CZ/" |
361dcebc C |
99 | }, |
100 | "eo": { | |
101 | "translation": "src/locale/angular.eo.xlf", | |
8cc56c7f | 102 | "baseHref": "/client/eo/" |
361dcebc C |
103 | }, |
104 | "de": { | |
105 | "translation": "src/locale/angular.de-DE.xlf", | |
8cc56c7f | 106 | "baseHref": "/client/de-DE/" |
361dcebc C |
107 | }, |
108 | "it": { | |
109 | "translation": "src/locale/angular.it-IT.xlf", | |
8cc56c7f | 110 | "baseHref": "/client/it-IT/" |
0bd558a0 C |
111 | }, |
112 | "vi": { | |
113 | "translation": "src/locale/angular.vi-VN.xlf", | |
114 | "baseHref": "/client/vi-VN/" | |
115 | }, | |
116 | "kab": { | |
117 | "translation": "src/locale/angular.kab.xlf", | |
118 | "baseHref": "/client/kab/" | |
361dcebc C |
119 | } |
120 | } | |
121 | }, | |
54c3a22f C |
122 | "architect": { |
123 | "build": { | |
124 | "builder": "@angular-devkit/build-angular:browser", | |
125 | "options": { | |
2f5d2ec5 | 126 | "aot": true, |
54c3a22f C |
127 | "outputPath": "dist", |
128 | "index": "src/index.html", | |
129 | "main": "src/main.ts", | |
16b55259 | 130 | "tsConfig": "tsconfig.app.json", |
54c3a22f C |
131 | "polyfills": "src/polyfills.ts", |
132 | "stylePreprocessorOptions": { | |
133 | "includePaths": [ | |
134 | "src/sass/include" | |
135 | ] | |
136 | }, | |
137 | "assets": [ | |
138 | "src/assets/images", | |
fcc7c060 | 139 | "src/manifest.webmanifest" |
54c3a22f C |
140 | ], |
141 | "styles": [ | |
142 | "src/sass/application.scss" | |
143 | ], | |
144 | "scripts": [] | |
145 | }, | |
146 | "configurations": { | |
147 | "production": { | |
148 | "optimization": true, | |
149 | "outputHashing": "all", | |
150 | "sourceMap": false, | |
151 | "extractCss": true, | |
152 | "namedChunks": false, | |
153 | "aot": true, | |
154 | "extractLicenses": true, | |
155 | "vendorChunk": false, | |
156 | "buildOptimizer": true, | |
a700f183 C |
157 | "serviceWorker": true, |
158 | "ngswConfigPath": "src/ngsw-config.json", | |
970ceac0 C |
159 | "budgets": [ |
160 | { | |
161 | "type": "initial", | |
970ceac0 C |
162 | "maximumWarning": "2mb", |
163 | "maximumError": "5mb" | |
970ceac0 C |
164 | }, |
165 | { | |
166 | "type": "anyComponentStyle", | |
167 | "maximumWarning": "6kb", | |
4adebd51 | 168 | "maximumError": "50kb" |
970ceac0 C |
169 | } |
170 | ], | |
54c3a22f C |
171 | "fileReplacements": [ |
172 | { | |
173 | "replace": "src/environments/environment.ts", | |
174 | "with": "src/environments/environment.prod.ts" | |
175 | } | |
176 | ] | |
74af5a83 C |
177 | }, |
178 | "hmr": { | |
2f5d2ec5 C |
179 | "budgets": [ |
180 | { | |
181 | "type": "anyComponentStyle", | |
182 | "maximumWarning": "6kb" | |
183 | } | |
184 | ], | |
74af5a83 C |
185 | "fileReplacements": [ |
186 | { | |
187 | "replace": "src/environments/environment.ts", | |
188 | "with": "src/environments/environment.hmr.ts" | |
189 | } | |
190 | ] | |
191 | }, | |
192 | "e2e": { | |
2f5d2ec5 C |
193 | "budgets": [ |
194 | { | |
195 | "type": "anyComponentStyle", | |
196 | "maximumWarning": "6kb" | |
197 | } | |
198 | ], | |
74af5a83 C |
199 | "fileReplacements": [ |
200 | { | |
201 | "replace": "src/environments/environment.ts", | |
202 | "with": "src/environments/environment.e2e.ts" | |
203 | } | |
204 | ] | |
361dcebc | 205 | }, |
d10538b4 | 206 | "ar": { |
520745bf C |
207 | "localize": [ "ar" ] |
208 | }, | |
361dcebc C |
209 | "hu-HU": { |
210 | "localize": [ "hu" ] | |
211 | }, | |
212 | "th-TH": { | |
213 | "localize": [ "th" ] | |
214 | }, | |
215 | "fi-FI": { | |
216 | "localize": [ "fi" ] | |
217 | }, | |
218 | "nl-NL": { | |
219 | "localize": [ "nl" ] | |
220 | }, | |
221 | "gd": { | |
222 | "localize": [ "gd" ] | |
223 | }, | |
224 | "el-GR": { | |
225 | "localize": [ "el" ] | |
226 | }, | |
227 | "es-ES": { | |
228 | "localize": [ "es" ] | |
229 | }, | |
2a39506c C |
230 | "oc": { |
231 | "localize": [ "oc" ] | |
232 | }, | |
361dcebc C |
233 | "pt-BR": { |
234 | "localize": [ "pt" ] | |
235 | }, | |
236 | "pt-PT": { | |
237 | "localize": [ "pt-PT" ] | |
238 | }, | |
239 | "sv-SE": { | |
240 | "localize": [ "sv" ] | |
241 | }, | |
242 | "pl-PL": { | |
243 | "localize": [ "pl" ] | |
244 | }, | |
245 | "ru-RU": { | |
246 | "localize": [ "ru" ] | |
247 | }, | |
248 | "zh-Hans-CN": { | |
249 | "localize": [ "zh-Hans" ] | |
250 | }, | |
251 | "zh-Hant-TW": { | |
252 | "localize": [ "zh-Hant" ] | |
253 | }, | |
254 | "fr-FR": { | |
255 | "localize": [ "fr" ] | |
256 | }, | |
257 | "ja-JP": { | |
258 | "localize": [ "ja" ] | |
259 | }, | |
260 | "eu-ES": { | |
261 | "localize": [ "eu" ] | |
262 | }, | |
263 | "ca-ES": { | |
264 | "localize": [ "ca" ] | |
265 | }, | |
266 | "cs-CZ": { | |
267 | "localize": [ "cs" ] | |
268 | }, | |
269 | "eo": { | |
270 | "localize": [ "eo" ] | |
271 | }, | |
272 | "de-DE": { | |
273 | "localize": [ "de" ] | |
274 | }, | |
275 | "it-IT": { | |
276 | "localize": [ "it" ] | |
0bd558a0 C |
277 | }, |
278 | "vi-VN": { | |
279 | "localize": [ "vi" ] | |
280 | }, | |
281 | "kab": { | |
282 | "localize": [ "kab" ] | |
54c3a22f C |
283 | } |
284 | } | |
285 | }, | |
286 | "serve": { | |
287 | "builder": "@angular-devkit/build-angular:dev-server", | |
288 | "options": { | |
41b15c89 C |
289 | "baseHref": "/", |
290 | "deployUrl": "client/", | |
446d9f8c C |
291 | "browserTarget": "PeerTube:build", |
292 | "proxyConfig": "proxy.config.json" | |
54c3a22f C |
293 | }, |
294 | "configurations": { | |
295 | "production": { | |
296 | "browserTarget": "PeerTube:build:production" | |
74af5a83 C |
297 | }, |
298 | "hmr": { | |
299 | "browserTarget": "PeerTube:build:hmr" | |
300 | }, | |
301 | "e2e": { | |
446d9f8c C |
302 | "browserTarget": "PeerTube:build:e2e", |
303 | "proxyConfig": "e2e/proxy.config.json" | |
54c3a22f C |
304 | } |
305 | } | |
306 | }, | |
307 | "extract-i18n": { | |
308 | "builder": "@angular-devkit/build-angular:extract-i18n", | |
309 | "options": { | |
310 | "browserTarget": "PeerTube:build" | |
311 | } | |
312 | }, | |
313 | "test": { | |
314 | "builder": "@angular-devkit/build-angular:karma", | |
315 | "options": { | |
316 | "main": "src/test.ts", | |
317 | "karmaConfig": "./karma.conf.js", | |
318 | "polyfills": "src/polyfills.ts", | |
319 | "tsConfig": "src/tsconfig.spec.json", | |
320 | "scripts": [], | |
321 | "styles": [ | |
322 | "src/sass/application.scss" | |
323 | ], | |
324 | "assets": [ | |
325 | "src/assets/images", | |
fcc7c060 | 326 | "src/manifest.webmanifest" |
54c3a22f C |
327 | ] |
328 | } | |
329 | }, | |
330 | "lint": { | |
331 | "builder": "@angular-devkit/build-angular:tslint", | |
332 | "options": { | |
333 | "tsConfig": [ | |
16b55259 | 334 | "tsconfig.app.json" |
54c3a22f C |
335 | ], |
336 | "exclude": [ | |
337 | "**/node_modules/**" | |
338 | ] | |
339 | } | |
3aea8eb2 C |
340 | }, |
341 | "xliffmerge": { | |
342 | "builder": "@ngx-i18nsupport/tooling:xliffmerge", | |
343 | "options": { | |
344 | "xliffmergeOptions": { | |
345 | "i18nFormat": "xlf", | |
346 | "srcDir": "src/locale", | |
347 | "genDir": "src/locale", | |
3aea8eb2 C |
348 | "i18nBaseFile": "angular", |
349 | "defaultLanguage": "en-US", | |
350 | "languages": [ | |
d10538b4 | 351 | "ar", |
fbe77135 C |
352 | "ca-ES", |
353 | "cs-CZ", | |
354 | "da-DK", | |
355 | "de-DE", | |
356 | "el-GR", | |
357 | "en-GB", | |
3aea8eb2 | 358 | "en-US", |
fbe77135 C |
359 | "eo", |
360 | "es-ES", | |
361 | "eu-ES", | |
362 | "fa-IR", | |
363 | "fi-FI", | |
364 | "fr-FR", | |
365 | "gd", | |
366 | "gl-ES", | |
367 | "hu-HU", | |
368 | "it-IT", | |
369 | "ja-JP", | |
370 | "jbo", | |
0bd558a0 | 371 | "kab", |
fbe77135 C |
372 | "ko-KR", |
373 | "lt-LT", | |
374 | "nb-NO", | |
375 | "nl-NL", | |
376 | "oc", | |
377 | "pl-PL", | |
378 | "pt-BR", | |
379 | "pt-PT", | |
380 | "ru-RU", | |
381 | "sk-SK", | |
382 | "sl-SI", | |
383 | "sv-SE", | |
384 | "ta", | |
385 | "th-TH", | |
386 | "tr-TR", | |
387 | "uk-UA", | |
388 | "vi-VN", | |
389 | "zh-Hans-CN", | |
390 | "zh-Hant-TW" | |
3aea8eb2 C |
391 | ] |
392 | } | |
393 | } | |
54c3a22f C |
394 | } |
395 | } | |
396 | }, | |
397 | "PeerTube-e2e": { | |
74af5a83 | 398 | "root": "e2e/", |
54c3a22f C |
399 | "sourceRoot": "", |
400 | "projectType": "application", | |
401 | "architect": { | |
402 | "e2e": { | |
403 | "builder": "@angular-devkit/build-angular:protractor", | |
404 | "options": { | |
74af5a83 C |
405 | "protractorConfig": "e2e/protractor.conf.js", |
406 | "devServerTarget": "PeerTube:serve:e2e" | |
9e3e2481 RK |
407 | }, |
408 | "configurations": { | |
409 | "local": { | |
410 | "protractorConfig": "e2e/local-protractor.conf.js" | |
411 | } | |
54c3a22f C |
412 | } |
413 | }, | |
414 | "lint": { | |
415 | "builder": "@angular-devkit/build-angular:tslint", | |
416 | "options": { | |
417 | "tsConfig": [ | |
418 | "e2e/tsconfig.e2e.json" | |
419 | ], | |
420 | "exclude": [ | |
421 | "**/node_modules/**" | |
422 | ] | |
423 | } | |
424 | } | |
425 | } | |
426 | } | |
427 | }, | |
428 | "defaultProject": "PeerTube", | |
429 | "schematics": { | |
430 | "@schematics/angular:component": { | |
431 | "prefix": "app", | |
432 | "styleext": "scss" | |
433 | }, | |
434 | "@schematics/angular:directive": { | |
435 | "prefix": "app" | |
436 | } | |
437 | } | |
17c49e60 | 438 | } |