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