X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=477cd597feb3cb0be1cbfcb1f4bb6373f8e2f73e;hb=404f0c0f54398c23b605679d0eb476d9fecc5df2;hp=4a03d7cfed9995e72a35191d25c0bb491c648525;hpb=54c3a22faa04bf13eea37f39be9149fc5eb95737;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 4a03d7cfe..477cd597f 100644 --- a/client/angular.json +++ b/client/angular.json @@ -11,10 +11,11 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "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": [ @@ -23,7 +24,7 @@ }, "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ], "styles": [ "src/sass/application.scss" @@ -42,24 +43,72 @@ "vendorChunk": false, "buildOptimizer": true, "serviceWorker": true, - "ngswConfigPath": "/src/ngsw-config.json", + "ngswConfigPath": "src/ngsw-config.json", + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ], "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ] + }, + "hmr": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.hmr.ts" + } + ] + }, + "e2e": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.e2e.ts" + } + ] + }, + "fr_FR": { + "aot": true, + "outputPath": "dist/PeerTube-fr_FR", + "i18nFile": "src/i18n/messages.fr_FR.xlf", + "i18nFormat": "xlf", + "i18nLocale": "fr_FR" } } }, "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:production" + }, + "hmr": { + "browserTarget": "PeerTube:build:hmr" + }, + "e2e": { + "browserTarget": "PeerTube:build:e2e", + "proxyConfig": "e2e/proxy.config.json" + }, + "fr_FR": { + "browserTarget": "PeerTube:build:fr_FR" } } }, @@ -82,7 +131,7 @@ ], "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ] } }, @@ -90,26 +139,83 @@ "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" + ] + } + } } } }, "PeerTube-e2e": { - "root": "", + "root": "e2e/", "sourceRoot": "", "projectType": "application", "architect": { "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { - "protractorConfig": "./protractor.conf.js", - "devServerTarget": "PeerTube:serve" + "protractorConfig": "e2e/protractor.conf.js", + "devServerTarget": "PeerTube:serve:e2e" + }, + "configurations": { + "local": { + "protractorConfig": "e2e/local-protractor.conf.js" + } } }, "lint": { @@ -136,4 +242,4 @@ "prefix": "app" } } -} \ No newline at end of file +}