X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=2cf2ecd621f5f6eb4dbb593974da44837493890f;hb=8be9f43aed84aa82a4a8e166c0855bd19e8afa90;hp=4f7f7e72bc7da9b413eb2b33feea2c2e61ca4d9d;hpb=17c49e60b367868c80f44b9921793dc3a2d9adaa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 4f7f7e72b..2cf2ecd62 100644 --- a/client/angular.json +++ b/client/angular.json @@ -24,7 +24,7 @@ }, "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ], "styles": [ "src/sass/application.scss" @@ -42,14 +42,30 @@ "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, - "serviceWorker": false, - "ngswConfigPath": "/src/ngsw-config.json", + "serviceWorker": true, + "ngswConfigPath": "src/ngsw-config.json", "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" + } + ] } } }, @@ -61,6 +77,12 @@ "configurations": { "production": { "browserTarget": "PeerTube:build:production" + }, + "hmr": { + "browserTarget": "PeerTube:build:hmr" + }, + "e2e": { + "browserTarget": "PeerTube:build:e2e" } } }, @@ -83,7 +105,7 @@ ], "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ] } }, @@ -102,15 +124,15 @@ } }, "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" } }, "lint": {