X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=2cf2ecd621f5f6eb4dbb593974da44837493890f;hb=fcc7c060374c3a547257d96af847352c14d6144b;hp=4a03d7cfed9995e72a35191d25c0bb491c648525;hpb=54c3a22faa04bf13eea37f39be9149fc5eb95737;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 4a03d7cfe..2cf2ecd62 100644 --- a/client/angular.json +++ b/client/angular.json @@ -11,6 +11,7 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "deployUrl": "client/", "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", @@ -23,7 +24,7 @@ }, "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ], "styles": [ "src/sass/application.scss" @@ -42,13 +43,29 @@ "vendorChunk": false, "buildOptimizer": true, "serviceWorker": true, - "ngswConfigPath": "/src/ngsw-config.json", + "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" + } + ] } } }, @@ -60,6 +77,12 @@ "configurations": { "production": { "browserTarget": "PeerTube:build:production" + }, + "hmr": { + "browserTarget": "PeerTube:build:hmr" + }, + "e2e": { + "browserTarget": "PeerTube:build:e2e" } } }, @@ -82,7 +105,7 @@ ], "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ] } }, @@ -101,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": { @@ -136,4 +159,4 @@ "prefix": "app" } } -} \ No newline at end of file +}