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