X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=789eeb3d00e4746e6dd58f99d194fde7a283f875;hb=9f16472264b74345cb8c13dde98a5950253854ad;hp=4a03d7cfed9995e72a35191d25c0bb491c648525;hpb=54c3a22faa04bf13eea37f39be9149fc5eb95737;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 4a03d7cfe..789eeb3d0 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", @@ -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" } } }, @@ -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 +}