X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=455c9fbde3da317c22d9bfbabd6caa2f9493192d;hb=7b54a81cccf6b4c12269e9d6897d608b1a99537a;hp=0a82b62fad1227455511dae67aa3bd98c9700c99;hpb=0bd558a0f9c7c6f1d5460e3792eaae663bf4f5e5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 0a82b62fa..455c9fbde 100644 --- a/client/angular.json +++ b/client/angular.json @@ -14,8 +14,8 @@ }, "locales": { "ar": { - "translation": "src/locale/angular.ar-001.xlf", - "baseHref": "/client/ar-001/" + "translation": "src/locale/angular.ar.xlf", + "baseHref": "/client/ar/" }, "hu": { "translation": "src/locale/angular.hu-HU.xlf", @@ -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,13 @@ "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", + "tsConfig": "tsconfig.json", "polyfills": "src/polyfills.ts", + "baseHref": "/", "stylePreprocessorOptions": { "includePaths": [ "src/sass/include" @@ -141,16 +150,35 @@ "styles": [ "src/sass/application.scss" ], - "scripts": [] + "allowedCommonJsDependencies": [ + "qrcode", + "chart.js", + "htmlparser2", + "markdown-it-emoji/light", + "linkifyjs/lib/linkify-html", + "linkifyjs/lib/plugins/mention", + "sanitize-html", + "debug", + "@peertube/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 +193,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "50kb" + "maximumError": "100kb" } ], "fileReplacements": [ @@ -175,7 +203,10 @@ } ] }, - "hmr": { + "ar-locale": { + "localize": [ + "ar" + ], "budgets": [ { "type": "anyComponentStyle", @@ -189,7 +220,8 @@ } ] }, - "e2e": { + "hmr": { + "localize": false, "budgets": [ { "type": "anyComponentStyle", @@ -199,95 +231,15 @@ "fileReplacements": [ { "replace": "src/environments/environment.ts", - "with": "src/environments/environment.e2e.ts" + "with": "src/environments/environment.hmr.ts" } ] - }, - "ar-001": { - "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,9 +250,8 @@ "hmr": { "browserTarget": "PeerTube:build:hmr" }, - "e2e": { - "browserTarget": "PeerTube:build:e2e", - "proxyConfig": "e2e/proxy.config.json" + "ar-locale": { + "browserTarget": "PeerTube:build:ar-locale" } } }, @@ -328,97 +279,12 @@ } }, "lint": { - "builder": "@angular-devkit/build-angular:tslint", + "builder": "@angular-eslint/builder:lint", "options": { - "tsConfig": [ - "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", - "kab", - "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" - ] - } - } - } - } - }, - "PeerTube-e2e": { - "root": "e2e/", - "sourceRoot": "", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "e2e/protractor.conf.js", - "devServerTarget": "PeerTube:serve:e2e" - }, - "configurations": { - "local": { - "protractorConfig": "e2e/local-protractor.conf.js" - } - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "e2e/tsconfig.e2e.json" - ], - "exclude": [ - "**/node_modules/**" + "lintFilePatterns": [ + "e2e/**/*.ts", + "src/**/*.ts", + "src/**/*.html" ] } } @@ -429,7 +295,7 @@ "schematics": { "@schematics/angular:component": { "prefix": "app", - "styleext": "scss" + "style": "scss" }, "@schematics/angular:directive": { "prefix": "app"