X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fangular.json;h=e1e4f4850cb5372542ced50d446403dc5eda3236;hb=122dbb5705a4b9c5d495f13a41a29bc74a8e542d;hp=4a03d7cfed9995e72a35191d25c0bb491c648525;hpb=54c3a22faa04bf13eea37f39be9149fc5eb95737;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/angular.json b/client/angular.json index 4a03d7cfe..e1e4f4850 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,60 @@ "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" + } + ] } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { + "baseHref": "/", + "deployUrl": "client/", "browserTarget": "PeerTube:build" }, "configurations": { "production": { "browserTarget": "PeerTube:build:production" + }, + "hmr": { + "browserTarget": "PeerTube:build:hmr" + }, + "e2e": { + "browserTarget": "PeerTube:build:e2e" } } }, @@ -82,7 +119,7 @@ ], "assets": [ "src/assets/images", - "src/manifest.json" + "src/manifest.webmanifest" ] } }, @@ -90,8 +127,7 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" + "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" @@ -101,15 +137,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": { @@ -136,4 +177,4 @@ "prefix": "app" } } -} \ No newline at end of file +}