From a9f7cc57b483f794b4c150e15ac64c07596021f0 Mon Sep 17 00:00:00 2001 From: Artur Date: Sun, 27 Oct 2024 23:13:55 +0100 Subject: [PATCH] Some changes in tasks. Specially in listen serve command --- .vscode/launch.json | 2 +- .vscode/tasks.json | 21 +++++++++++++++++++++ angular.json | 4 ++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 318f547..92528b8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "type": "chrome", "request": "launch", "preLaunchTask": "npm: start", - "url": "http://localhost:4200/" + "url": "http://localhost:4201/" }, { "name": "ng test", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index a298b5b..314bc2e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -37,6 +37,27 @@ } } } + }, + { + "type": "java (build)", + "paths": [ + "${workspace}" + ], + "isFullBuild": true, + "group": "build", + "problemMatcher": [], + "label": "java (build): Build Workspace", + "detail": "$(tools) Build all the Java projects in workspace." + }, + { + "label": "Start Angular Server", + "type": "shell", + "command": "ng serve --port 4202 --host 0.0.0.0", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] } ] } diff --git a/angular.json b/angular.json index 59f79e7..267c8b1 100644 --- a/angular.json +++ b/angular.json @@ -61,6 +61,10 @@ }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "port": 4201, + "host": "0.0.0.0" + }, "configurations": { "production": { "buildTarget": "arti-angular-app:build:production"