]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/angular.json
Fix angular 9 build
[github/Chocobozzz/PeerTube.git] / client / angular.json
index 789eeb3d00e4746e6dd58f99d194fde7a283f875..f3f146bcb8946594db82bfce40639b5a22a4e148 100644 (file)
         "build": {
           "builder": "@angular-devkit/build-angular:browser",
           "options": {
+            "aot": true,
             "deployUrl": "client/",
             "outputPath": "dist",
             "index": "src/index.html",
             "main": "src/main.ts",
-            "tsConfig": "src/tsconfig.app.json",
+            "tsConfig": "tsconfig.app.json",
             "polyfills": "src/polyfills.ts",
             "stylePreprocessorOptions": {
               "includePaths": [
@@ -24,7 +25,7 @@
             },
             "assets": [
               "src/assets/images",
-              "src/manifest.json"
+              "src/manifest.webmanifest"
             ],
             "styles": [
               "src/sass/application.scss"
               "buildOptimizer": true,
               "serviceWorker": true,
               "ngswConfigPath": "src/ngsw-config.json",
+              "budgets": [
+                {
+                  "type": "initial",
+                  "maximumWarning": "2mb",
+                  "maximumError": "5mb"
+                },
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb",
+                  "maximumError": "10kb"
+                }
+              ],
               "fileReplacements": [
                 {
                   "replace": "src/environments/environment.ts",
               ]
             },
             "hmr": {
+              "budgets": [
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb"
+                }
+              ],
               "fileReplacements": [
                 {
                   "replace": "src/environments/environment.ts",
               ]
             },
             "e2e": {
+              "budgets": [
+                {
+                  "type": "anyComponentStyle",
+                  "maximumWarning": "6kb"
+                }
+              ],
               "fileReplacements": [
                 {
                   "replace": "src/environments/environment.ts",
         "serve": {
           "builder": "@angular-devkit/build-angular:dev-server",
           "options": {
-            "browserTarget": "PeerTube:build"
+            "baseHref": "/",
+            "deployUrl": "client/",
+            "browserTarget": "PeerTube:build",
+            "proxyConfig": "proxy.config.json"
           },
           "configurations": {
             "production": {
               "browserTarget": "PeerTube:build:hmr"
             },
             "e2e": {
-              "browserTarget": "PeerTube:build:e2e"
+              "browserTarget": "PeerTube:build:e2e",
+              "proxyConfig": "e2e/proxy.config.json"
             }
           }
         },
             ],
             "assets": [
               "src/assets/images",
-              "src/manifest.json"
+              "src/manifest.webmanifest"
             ]
           }
         },
           "builder": "@angular-devkit/build-angular:tslint",
           "options": {
             "tsConfig": [
-              "src/tsconfig.app.json",
-              "src/tsconfig.spec.json"
+              "tsconfig.app.json"
             ],
             "exclude": [
               "**/node_modules/**"
             ]
           }
+        },
+        "xliffmerge": {
+          "builder": "@ngx-i18nsupport/tooling:xliffmerge",
+          "options": {
+            "xliffmergeOptions": {
+              "i18nFormat": "xlf",
+              "srcDir": "src/locale",
+              "genDir": "src/locale",
+              "i18nBaseFile": "angular",
+              "defaultLanguage": "en-US",
+              "languages": [
+                "ar-001",
+                "ca-ES",
+                "cs-CZ",
+                "da-DK",
+                "de-DE",
+                "el-GR",
+                "en-GB",
+                "en-US",
+                "eo",
+                "es-ES",
+                "eu-ES",
+                "fa-IR",
+                "fi-FI",
+                "fr-FR",
+                "gd",
+                "gl-ES",
+                "hu-HU",
+                "it-IT",
+                "ja-JP",
+                "jbo",
+                "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"
+              ]
+            }
+          }
         }
       }
     },
           "options": {
             "protractorConfig": "e2e/protractor.conf.js",
             "devServerTarget": "PeerTube:serve:e2e"
+          },
+          "configurations": {
+            "local": {
+              "protractorConfig": "e2e/local-protractor.conf.js"
+            }
           }
         },
         "lint": {