]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/angular.json
Fix video upload with some characters in filename
[github/Chocobozzz/PeerTube.git] / client / angular.json
CommitLineData
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 },
136 "nn": {
137 "translation": "src/locale/angular.nn.xlf",
138 "baseHref": "/client/nn/"
361dcebc
C
139 }
140 }
141 },
54c3a22f
C
142 "architect": {
143 "build": {
144 "builder": "@angular-devkit/build-angular:browser",
145 "options": {
66357162 146 "localize": true,
54c3a22f
C
147 "outputPath": "dist",
148 "index": "src/index.html",
149 "main": "src/main.ts",
1d4591fd 150 "tsConfig": "tsconfig.json",
54c3a22f 151 "polyfills": "src/polyfills.ts",
662351e6 152 "baseHref": "/",
54c3a22f
C
153 "stylePreprocessorOptions": {
154 "includePaths": [
155 "src/sass/include"
156 ]
157 },
158 "assets": [
159 "src/assets/images",
fcc7c060 160 "src/manifest.webmanifest"
54c3a22f
C
161 ],
162 "styles": [
163 "src/sass/application.scss"
164 ],
d88c9eb9 165 "allowedCommonJsDependencies": [
57a9b61a 166 "@cordobo/qrcode",
d88c9eb9 167 "chart.js",
42c84e41 168 "htmlparser2",
fc418874 169 "markdown-it-emoji/light",
f8ddccf2 170 "linkifyjs/lib/linkify-html",
e1a570ab 171 "linkifyjs/lib/plugins/mention",
d88c9eb9 172 "sanitize-html",
42c84e41 173 "debug",
1d4591fd 174 "@peertube/p2p-media-loader-hlsjs",
42c84e41 175 "video.js",
57a9b61a 176 "sha.js",
5cbb5399
C
177 "postcss",
178 "core-js/features/reflect"
d88c9eb9 179 ],
05ded92e
C
180 "scripts": [],
181 "vendorChunk": true,
182 "extractLicenses": false,
183 "buildOptimizer": false,
184 "sourceMap": true,
185 "optimization": false,
186 "namedChunks": true
54c3a22f
C
187 },
188 "configurations": {
189 "production": {
190 "optimization": true,
191 "outputHashing": "all",
192 "sourceMap": false,
54c3a22f 193 "namedChunks": false,
54c3a22f
C
194 "extractLicenses": true,
195 "vendorChunk": false,
196 "buildOptimizer": true,
a700f183
C
197 "serviceWorker": true,
198 "ngswConfigPath": "src/ngsw-config.json",
970ceac0
C
199 "budgets": [
200 {
201 "type": "initial",
970ceac0
C
202 "maximumWarning": "2mb",
203 "maximumError": "5mb"
970ceac0
C
204 },
205 {
206 "type": "anyComponentStyle",
207 "maximumWarning": "6kb",
db5814c0 208 "maximumError": "100kb"
970ceac0
C
209 }
210 ],
54c3a22f
C
211 "fileReplacements": [
212 {
213 "replace": "src/environments/environment.ts",
214 "with": "src/environments/environment.prod.ts"
215 }
216 ]
74af5a83 217 },
27bc9586 218 "ar-locale": {
9df52d66
C
219 "localize": [
220 "ar"
221 ],
27bc9586
C
222 "budgets": [
223 {
224 "type": "anyComponentStyle",
225 "maximumWarning": "6kb"
226 }
227 ],
228 "fileReplacements": [
229 {
230 "replace": "src/environments/environment.ts",
231 "with": "src/environments/environment.hmr.ts"
232 }
233 ]
234 },
74af5a83 235 "hmr": {
66357162 236 "localize": false,
2f5d2ec5
C
237 "budgets": [
238 {
239 "type": "anyComponentStyle",
240 "maximumWarning": "6kb"
241 }
242 ],
74af5a83
C
243 "fileReplacements": [
244 {
245 "replace": "src/environments/environment.ts",
246 "with": "src/environments/environment.hmr.ts"
247 }
248 ]
54c3a22f
C
249 }
250 }
251 },
252 "serve": {
253 "builder": "@angular-devkit/build-angular:dev-server",
254 "options": {
446d9f8c
C
255 "browserTarget": "PeerTube:build",
256 "proxyConfig": "proxy.config.json"
54c3a22f
C
257 },
258 "configurations": {
259 "production": {
260 "browserTarget": "PeerTube:build:production"
74af5a83
C
261 },
262 "hmr": {
263 "browserTarget": "PeerTube:build:hmr"
264 },
27bc9586
C
265 "ar-locale": {
266 "browserTarget": "PeerTube:build:ar-locale"
54c3a22f
C
267 }
268 }
269 },
270 "extract-i18n": {
271 "builder": "@angular-devkit/build-angular:extract-i18n",
272 "options": {
273 "browserTarget": "PeerTube:build"
274 }
275 },
276 "test": {
277 "builder": "@angular-devkit/build-angular:karma",
278 "options": {
279 "main": "src/test.ts",
280 "karmaConfig": "./karma.conf.js",
281 "polyfills": "src/polyfills.ts",
282 "tsConfig": "src/tsconfig.spec.json",
283 "scripts": [],
284 "styles": [
285 "src/sass/application.scss"
286 ],
287 "assets": [
288 "src/assets/images",
fcc7c060 289 "src/manifest.webmanifest"
54c3a22f
C
290 ]
291 }
292 },
293 "lint": {
9df52d66 294 "builder": "@angular-eslint/builder:lint",
54c3a22f 295 "options": {
9df52d66 296 "lintFilePatterns": [
6d210220 297 "e2e/**/*.ts",
9df52d66
C
298 "src/**/*.ts",
299 "src/**/*.html"
54c3a22f
C
300 ]
301 }
302 }
303 }
54c3a22f
C
304 }
305 },
306 "defaultProject": "PeerTube",
307 "schematics": {
308 "@schematics/angular:component": {
2accfdd8
C
309 "prefix": "my",
310 "style": "scss",
311 "skipTests": true,
312 "flat": true
54c3a22f
C
313 },
314 "@schematics/angular:directive": {
2accfdd8 315 "prefix": "my"
54c3a22f
C
316 }
317 }
17c49e60 318}