X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=950ac059e99a2e2b9ca0ec1a5e10bc595b020a6b;hb=2f26030dd2da121fb1d1701600e93f689141df40;hp=4f7f7e72bc7da9b413eb2b33feea2c2e61ca4d9d;hpb=17c49e60b367868c80f44b9921793dc3a2d9adaa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 4f7f7e72b..950ac059e 100644 --- a/client/angular.json +++ b/client/angular.json @@ -15,7 +15,7 @@ "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 +24,7 @@ }, "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ], "styles": [ "src/sass/application.scss" @@ -42,25 +42,63 @@ "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, - "serviceWorker": false, - "ngswConfigPath": "/src/ngsw-config.json", + "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", "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" + } + ] } } }, "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" } } }, @@ -83,7 +121,7 @@ ], "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ] } }, @@ -91,8 +129,7 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" + "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" @@ -102,15 +139,20 @@ } }, "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": {