X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=2511615790f2b3b0d8e63f8f5daa0c1c9812e058;hb=81d5be91adf4d8274b6c2b19945ac6267b94c6b2;hp=8045099e71d02976852ffd4efb529becb9a3f5db;hpb=583eb04b541175035d6d452ca626a96ebf2b7437;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 8045099e7..251161579 100644 --- a/client/angular.json +++ b/client/angular.json @@ -69,6 +69,10 @@ "translation": "src/locale/angular.ru-RU.xlf", "baseHref": "/client/ru-RU/" }, + "sq": { + "translation": "src/locale/angular.sq.xlf", + "baseHref": "/client/sq/" + }, "zh-Hans": { "translation": "src/locale/angular.zh-Hans-CN.xlf", "baseHref": "/client/zh-Hans-CN/" @@ -93,6 +97,10 @@ "translation": "src/locale/angular.ca-ES.xlf", "baseHref": "/client/ca-ES/" }, + "gl": { + "translation": "src/locale/angular.gl-ES.xlf", + "baseHref": "/client/gl-ES/" + }, "cs": { "translation": "src/locale/angular.cs-CZ.xlf", "baseHref": "/client/cs-CZ/" @@ -123,12 +131,14 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, + "localize": true, "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "tsConfig": "tsconfig.app.json", "polyfills": "src/polyfills.ts", + "baseHref": "/", + "deployUrl": "", "stylePreprocessorOptions": { "includePaths": [ "src/sass/include" @@ -141,16 +151,33 @@ "styles": [ "src/sass/application.scss" ], - "scripts": [] + "allowedCommonJsDependencies": [ + "qrcode", + "chart.js", + "htmlparser2", + "markdown-it-emoji/light", + "sanitize-html", + "debug", + "p2p-media-loader-hlsjs", + "video.js", + "sha.js/sha1", + "postcss", + "core-js/features/reflect" + ], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -165,7 +192,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "50kb" + "maximumError": "100kb" } ], "fileReplacements": [ @@ -175,7 +202,23 @@ } ] }, + "ar-locale": { + "localize": ["ar"], + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.hmr.ts" + } + ] + }, "hmr": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -190,6 +233,7 @@ ] }, "e2e": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -202,92 +246,12 @@ "with": "src/environments/environment.e2e.ts" } ] - }, - "ar": { - "localize": [ "ar" ] - }, - "hu-HU": { - "localize": [ "hu" ] - }, - "th-TH": { - "localize": [ "th" ] - }, - "fi-FI": { - "localize": [ "fi" ] - }, - "nl-NL": { - "localize": [ "nl" ] - }, - "gd": { - "localize": [ "gd" ] - }, - "el-GR": { - "localize": [ "el" ] - }, - "es-ES": { - "localize": [ "es" ] - }, - "oc": { - "localize": [ "oc" ] - }, - "pt-BR": { - "localize": [ "pt" ] - }, - "pt-PT": { - "localize": [ "pt-PT" ] - }, - "sv-SE": { - "localize": [ "sv" ] - }, - "pl-PL": { - "localize": [ "pl" ] - }, - "ru-RU": { - "localize": [ "ru" ] - }, - "zh-Hans-CN": { - "localize": [ "zh-Hans" ] - }, - "zh-Hant-TW": { - "localize": [ "zh-Hant" ] - }, - "fr-FR": { - "localize": [ "fr" ] - }, - "ja-JP": { - "localize": [ "ja" ] - }, - "eu-ES": { - "localize": [ "eu" ] - }, - "ca-ES": { - "localize": [ "ca" ] - }, - "cs-CZ": { - "localize": [ "cs" ] - }, - "eo": { - "localize": [ "eo" ] - }, - "de-DE": { - "localize": [ "de" ] - }, - "it-IT": { - "localize": [ "it" ] - }, - "vi-VN": { - "localize": [ "vi" ] - }, - "kab": { - "localize": [ "kab" ] } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "baseHref": "/", - "deployUrl": "client/", "browserTarget": "PeerTube:build", "proxyConfig": "proxy.config.json" }, @@ -298,6 +262,9 @@ "hmr": { "browserTarget": "PeerTube:build:hmr" }, + "ar-locale": { + "browserTarget": "PeerTube:build:ar-locale" + }, "e2e": { "browserTarget": "PeerTube:build:e2e", "proxyConfig": "e2e/proxy.config.json" @@ -350,6 +317,7 @@ "languages": [ "ar", "ca-ES", + "gl-ES", "cs-CZ", "da-DK", "de-DE",