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