]>
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 | }, |
55f0a7a7 C |
20 | "fa": { |
21 | "translation": "src/locale/angular.fa-IR.xlf", | |
22 | "baseHref": "/client/fa-IR/" | |
23 | }, | |
361dcebc C |
24 | "hu": { |
25 | "translation": "src/locale/angular.hu-HU.xlf", | |
8cc56c7f | 26 | "baseHref": "/client/hu-HU/" |
361dcebc C |
27 | }, |
28 | "th": { | |
29 | "translation": "src/locale/angular.th-TH.xlf", | |
8cc56c7f | 30 | "baseHref": "/client/th-TH/" |
361dcebc C |
31 | }, |
32 | "fi": { | |
33 | "translation": "src/locale/angular.fi-FI.xlf", | |
8cc56c7f | 34 | "baseHref": "/client/fi-FI/" |
361dcebc C |
35 | }, |
36 | "nl": { | |
37 | "translation": "src/locale/angular.nl-NL.xlf", | |
8cc56c7f | 38 | "baseHref": "/client/nl-NL/" |
361dcebc C |
39 | }, |
40 | "gd": { | |
41 | "translation": "src/locale/angular.gd.xlf", | |
8cc56c7f | 42 | "baseHref": "/client/gd/" |
361dcebc C |
43 | }, |
44 | "el": { | |
45 | "translation": "src/locale/angular.el-GR.xlf", | |
8cc56c7f | 46 | "baseHref": "/client/el-GR/" |
361dcebc C |
47 | }, |
48 | "es": { | |
49 | "translation": "src/locale/angular.es-ES.xlf", | |
8cc56c7f | 50 | "baseHref": "/client/es-ES/" |
361dcebc | 51 | }, |
2a39506c C |
52 | "oc": { |
53 | "translation": "src/locale/angular.oc.xlf", | |
54 | "baseHref": "/client/oc/" | |
55 | }, | |
361dcebc C |
56 | "pt": { |
57 | "translation": "src/locale/angular.pt-BR.xlf", | |
8cc56c7f | 58 | "baseHref": "/client/pt-BR/" |
361dcebc C |
59 | }, |
60 | "pt-PT": { | |
61 | "translation": "src/locale/angular.pt-PT.xlf", | |
8cc56c7f | 62 | "baseHref": "/client/pt-PT/" |
361dcebc C |
63 | }, |
64 | "sv": { | |
65 | "translation": "src/locale/angular.sv-SE.xlf", | |
8cc56c7f | 66 | "baseHref": "/client/sv-SE/" |
361dcebc C |
67 | }, |
68 | "pl": { | |
69 | "translation": "src/locale/angular.pl-PL.xlf", | |
8cc56c7f | 70 | "baseHref": "/client/pl-PL/" |
361dcebc C |
71 | }, |
72 | "ru": { | |
73 | "translation": "src/locale/angular.ru-RU.xlf", | |
8cc56c7f | 74 | "baseHref": "/client/ru-RU/" |
361dcebc | 75 | }, |
f45aa01a C |
76 | "sq": { |
77 | "translation": "src/locale/angular.sq.xlf", | |
78 | "baseHref": "/client/sq/" | |
79 | }, | |
361dcebc C |
80 | "zh-Hans": { |
81 | "translation": "src/locale/angular.zh-Hans-CN.xlf", | |
8cc56c7f | 82 | "baseHref": "/client/zh-Hans-CN/" |
361dcebc C |
83 | }, |
84 | "zh-Hant": { | |
85 | "translation": "src/locale/angular.zh-Hant-TW.xlf", | |
8cc56c7f | 86 | "baseHref": "/client/zh-Hant-TW/" |
361dcebc C |
87 | }, |
88 | "fr": { | |
89 | "translation": "src/locale/angular.fr-FR.xlf", | |
8cc56c7f | 90 | "baseHref": "/client/fr-FR/" |
361dcebc C |
91 | }, |
92 | "ja": { | |
93 | "translation": "src/locale/angular.ja-JP.xlf", | |
8cc56c7f | 94 | "baseHref": "/client/ja-JP/" |
361dcebc C |
95 | }, |
96 | "eu": { | |
97 | "translation": "src/locale/angular.eu-ES.xlf", | |
8cc56c7f | 98 | "baseHref": "/client/eu-ES/" |
361dcebc C |
99 | }, |
100 | "ca": { | |
101 | "translation": "src/locale/angular.ca-ES.xlf", | |
8cc56c7f | 102 | "baseHref": "/client/ca-ES/" |
361dcebc | 103 | }, |
c7444546 C |
104 | "gl": { |
105 | "translation": "src/locale/angular.gl-ES.xlf", | |
106 | "baseHref": "/client/gl-ES/" | |
107 | }, | |
361dcebc C |
108 | "cs": { |
109 | "translation": "src/locale/angular.cs-CZ.xlf", | |
8cc56c7f | 110 | "baseHref": "/client/cs-CZ/" |
361dcebc C |
111 | }, |
112 | "eo": { | |
113 | "translation": "src/locale/angular.eo.xlf", | |
8cc56c7f | 114 | "baseHref": "/client/eo/" |
361dcebc C |
115 | }, |
116 | "de": { | |
117 | "translation": "src/locale/angular.de-DE.xlf", | |
8cc56c7f | 118 | "baseHref": "/client/de-DE/" |
361dcebc C |
119 | }, |
120 | "it": { | |
121 | "translation": "src/locale/angular.it-IT.xlf", | |
8cc56c7f | 122 | "baseHref": "/client/it-IT/" |
0bd558a0 C |
123 | }, |
124 | "vi": { | |
125 | "translation": "src/locale/angular.vi-VN.xlf", | |
126 | "baseHref": "/client/vi-VN/" | |
127 | }, | |
128 | "kab": { | |
129 | "translation": "src/locale/angular.kab.xlf", | |
130 | "baseHref": "/client/kab/" | |
66175ae8 C |
131 | }, |
132 | "nb": { | |
133 | "translation": "src/locale/angular.nb-NO.xlf", | |
134 | "baseHref": "/client/nb-NO/" | |
135 | }, | |
4c1ce3d4 C |
136 | "tok": { |
137 | "translation": "src/locale/angular.tok.xlf", | |
138 | "baseHref": "/client/tok/" | |
139 | }, | |
66175ae8 C |
140 | "nn": { |
141 | "translation": "src/locale/angular.nn.xlf", | |
142 | "baseHref": "/client/nn/" | |
361dcebc C |
143 | } |
144 | } | |
145 | }, | |
54c3a22f C |
146 | "architect": { |
147 | "build": { | |
148 | "builder": "@angular-devkit/build-angular:browser", | |
149 | "options": { | |
66357162 | 150 | "localize": true, |
54c3a22f C |
151 | "outputPath": "dist", |
152 | "index": "src/index.html", | |
153 | "main": "src/main.ts", | |
1d4591fd | 154 | "tsConfig": "tsconfig.json", |
54c3a22f | 155 | "polyfills": "src/polyfills.ts", |
662351e6 | 156 | "baseHref": "/", |
54c3a22f C |
157 | "stylePreprocessorOptions": { |
158 | "includePaths": [ | |
159 | "src/sass/include" | |
160 | ] | |
161 | }, | |
162 | "assets": [ | |
163 | "src/assets/images", | |
fcc7c060 | 164 | "src/manifest.webmanifest" |
54c3a22f C |
165 | ], |
166 | "styles": [ | |
167 | "src/sass/application.scss" | |
168 | ], | |
d88c9eb9 | 169 | "allowedCommonJsDependencies": [ |
57a9b61a | 170 | "@cordobo/qrcode", |
d88c9eb9 | 171 | "chart.js", |
42c84e41 | 172 | "htmlparser2", |
fc418874 | 173 | "markdown-it-emoji/light", |
f8ddccf2 | 174 | "linkifyjs/lib/linkify-html", |
e1a570ab | 175 | "linkifyjs/lib/plugins/mention", |
d88c9eb9 | 176 | "sanitize-html", |
42c84e41 | 177 | "debug", |
1d4591fd | 178 | "@peertube/p2p-media-loader-hlsjs", |
42c84e41 | 179 | "video.js", |
57a9b61a | 180 | "sha.js", |
5cbb5399 C |
181 | "postcss", |
182 | "core-js/features/reflect" | |
d88c9eb9 | 183 | ], |
05ded92e C |
184 | "scripts": [], |
185 | "vendorChunk": true, | |
186 | "extractLicenses": false, | |
187 | "buildOptimizer": false, | |
188 | "sourceMap": true, | |
189 | "optimization": false, | |
190 | "namedChunks": true | |
54c3a22f C |
191 | }, |
192 | "configurations": { | |
193 | "production": { | |
194 | "optimization": true, | |
195 | "outputHashing": "all", | |
196 | "sourceMap": false, | |
54c3a22f | 197 | "namedChunks": false, |
54c3a22f C |
198 | "extractLicenses": true, |
199 | "vendorChunk": false, | |
200 | "buildOptimizer": true, | |
a700f183 C |
201 | "serviceWorker": true, |
202 | "ngswConfigPath": "src/ngsw-config.json", | |
970ceac0 C |
203 | "budgets": [ |
204 | { | |
205 | "type": "initial", | |
970ceac0 C |
206 | "maximumWarning": "2mb", |
207 | "maximumError": "5mb" | |
970ceac0 C |
208 | }, |
209 | { | |
210 | "type": "anyComponentStyle", | |
211 | "maximumWarning": "6kb", | |
db5814c0 | 212 | "maximumError": "100kb" |
970ceac0 C |
213 | } |
214 | ], | |
54c3a22f C |
215 | "fileReplacements": [ |
216 | { | |
217 | "replace": "src/environments/environment.ts", | |
218 | "with": "src/environments/environment.prod.ts" | |
219 | } | |
220 | ] | |
74af5a83 | 221 | }, |
27bc9586 | 222 | "ar-locale": { |
9df52d66 C |
223 | "localize": [ |
224 | "ar" | |
225 | ], | |
27bc9586 C |
226 | "budgets": [ |
227 | { | |
228 | "type": "anyComponentStyle", | |
229 | "maximumWarning": "6kb" | |
230 | } | |
231 | ], | |
232 | "fileReplacements": [ | |
233 | { | |
234 | "replace": "src/environments/environment.ts", | |
235 | "with": "src/environments/environment.hmr.ts" | |
236 | } | |
237 | ] | |
238 | }, | |
74af5a83 | 239 | "hmr": { |
66357162 | 240 | "localize": false, |
2f5d2ec5 C |
241 | "budgets": [ |
242 | { | |
243 | "type": "anyComponentStyle", | |
244 | "maximumWarning": "6kb" | |
245 | } | |
246 | ], | |
74af5a83 C |
247 | "fileReplacements": [ |
248 | { | |
249 | "replace": "src/environments/environment.ts", | |
250 | "with": "src/environments/environment.hmr.ts" | |
251 | } | |
252 | ] | |
54c3a22f C |
253 | } |
254 | } | |
255 | }, | |
256 | "serve": { | |
257 | "builder": "@angular-devkit/build-angular:dev-server", | |
258 | "options": { | |
446d9f8c C |
259 | "browserTarget": "PeerTube:build", |
260 | "proxyConfig": "proxy.config.json" | |
54c3a22f C |
261 | }, |
262 | "configurations": { | |
263 | "production": { | |
264 | "browserTarget": "PeerTube:build:production" | |
74af5a83 C |
265 | }, |
266 | "hmr": { | |
267 | "browserTarget": "PeerTube:build:hmr" | |
268 | }, | |
27bc9586 C |
269 | "ar-locale": { |
270 | "browserTarget": "PeerTube:build:ar-locale" | |
54c3a22f C |
271 | } |
272 | } | |
273 | }, | |
274 | "extract-i18n": { | |
275 | "builder": "@angular-devkit/build-angular:extract-i18n", | |
276 | "options": { | |
277 | "browserTarget": "PeerTube:build" | |
278 | } | |
279 | }, | |
280 | "test": { | |
281 | "builder": "@angular-devkit/build-angular:karma", | |
282 | "options": { | |
283 | "main": "src/test.ts", | |
284 | "karmaConfig": "./karma.conf.js", | |
285 | "polyfills": "src/polyfills.ts", | |
286 | "tsConfig": "src/tsconfig.spec.json", | |
287 | "scripts": [], | |
288 | "styles": [ | |
289 | "src/sass/application.scss" | |
290 | ], | |
291 | "assets": [ | |
292 | "src/assets/images", | |
fcc7c060 | 293 | "src/manifest.webmanifest" |
54c3a22f C |
294 | ] |
295 | } | |
296 | }, | |
297 | "lint": { | |
9df52d66 | 298 | "builder": "@angular-eslint/builder:lint", |
54c3a22f | 299 | "options": { |
9df52d66 | 300 | "lintFilePatterns": [ |
6d210220 | 301 | "e2e/**/*.ts", |
9df52d66 C |
302 | "src/**/*.ts", |
303 | "src/**/*.html" | |
54c3a22f C |
304 | ] |
305 | } | |
306 | } | |
307 | } | |
54c3a22f C |
308 | } |
309 | }, | |
310 | "defaultProject": "PeerTube", | |
311 | "schematics": { | |
312 | "@schematics/angular:component": { | |
2accfdd8 C |
313 | "prefix": "my", |
314 | "style": "scss", | |
315 | "skipTests": true, | |
316 | "flat": true | |
54c3a22f C |
317 | }, |
318 | "@schematics/angular:directive": { | |
2accfdd8 | 319 | "prefix": "my" |
54c3a22f C |
320 | } |
321 | } | |
17c49e60 | 322 | } |