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