X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=556df6bbd2ce0f4e8bbce531765510322406e8ac;hb=6aaf43ddedf63b03bec991a2d44397595c357ee6;hp=e453ce273327ce7aa2bef19d1484a19003834bd6;hpb=4f926722ea6784ea389013378fd233f59077ec8a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index e453ce273..556df6bbd 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,13 +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", + "tsConfig": "tsconfig.json", "polyfills": "src/polyfills.ts", + "baseHref": "/", + "deployUrl": "", "stylePreprocessorOptions": { "includePaths": [ "src/sass/include" @@ -143,34 +152,25 @@ "src/sass/application.scss" ], "allowedCommonJsDependencies": [ - "@angularclass/hmr", - "debug", - "mousetrap", + "qrcode", "chart.js", - "linkifyjs/html", - "linkifyjs", - "markdown-it", + "htmlparser2", + "markdown-it-emoji/light", "sanitize-html", - "socket.io-client", - "socket.io-parser", - "@app/+about/about-peertube/about-peertube-contributors.component", - "path", + "debug", + "@peertube/p2p-media-loader-hlsjs", "video.js", - "p2p-media-loader-hlsjs", - "videojs-hotkeys/videojs.hotkeys", - "p2p-media-loader-core", - "qrcode", - "webtorrent", - "cache-chunk-store", - "global/document", - "videojs-vtt.js", - "videojs-vtt.js", - "@babel/runtime/helpers/possibleConstructorReturn", - "@babel/runtime/helpers/inherits", - "@babel/runtime/helpers/construct", - "@videojs/xhr" + "sha.js/sha1", + "postcss", + "core-js/features/reflect" ], - "scripts": [] + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { @@ -178,7 +178,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -193,7 +192,7 @@ { "type": "anyComponentStyle", "maximumWarning": "6kb", - "maximumError": "50kb" + "maximumError": "100kb" } ], "fileReplacements": [ @@ -203,14 +202,22 @@ } ] }, - "i18n": { - "optimization": false, - "outputHashing": "none", - "sourceMap": true, - "namedChunks": true, - "aot": true, - "buildOptimizer": false, - "budgets": [] + "ar-locale": { + "localize": [ + "ar" + ], + "budgets": [ + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ], + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.hmr.ts" + } + ] }, "hmr": { "localize": false, @@ -247,8 +254,6 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "baseHref": "/", - "deployUrl": "client/", "browserTarget": "PeerTube:build", "proxyConfig": "proxy.config.json" }, @@ -259,6 +264,9 @@ "hmr": { "browserTarget": "PeerTube:build:hmr" }, + "ar-locale": { + "browserTarget": "PeerTube:build:ar-locale" + }, "e2e": { "browserTarget": "PeerTube:build:e2e", "proxyConfig": "e2e/proxy.config.json" @@ -289,13 +297,11 @@ } }, "lint": { - "builder": "@angular-devkit/build-angular:tslint", + "builder": "@angular-eslint/builder:lint", "options": { - "tsConfig": [ - "tsconfig.app.json" - ], - "exclude": [ - "**/node_modules/**" + "lintFilePatterns": [ + "src/**/*.ts", + "src/**/*.html" ] } }, @@ -311,6 +317,7 @@ "languages": [ "ar", "ca-ES", + "gl-ES", "cs-CZ", "da-DK", "de-DE", @@ -371,17 +378,6 @@ "protractorConfig": "e2e/local-protractor.conf.js" } } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "e2e/tsconfig.e2e.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } } } }