„.vscode/tasks.json“ ändern

This commit is contained in:
2024-04-20 06:53:40 +00:00
parent eb0cb22edd
commit 02dcbf0192

32
.vscode/tasks.json vendored
View File

@@ -34,9 +34,9 @@
}, },
{ {
"label": "Start Frontend", "label": "Start Frontend",
"dependsOn": ["Start Backend"],
"type": "shell", "type": "shell",
"command": "BROWSER=none npm start", "command": "npm start",
"dependsOn": ["Start Backend"],
"options": { "cwd": "${workspaceFolder}/frontend" }, "options": { "cwd": "${workspaceFolder}/frontend" },
"isBackground": true, "isBackground": true,
"problemMatcher": { "problemMatcher": {
@@ -54,7 +54,6 @@
} }
} }
}, },
{ {
"type": "shell", "type": "shell",
"label": "Docker Build", "label": "Docker Build",
@@ -63,13 +62,34 @@
}, },
{ {
"label": "Terminate All Tasks", "label": "Terminate All Tasks",
"command": "echo ${input:terminate}",
"type": "shell", "type": "shell",
"command": "echo 'Terminating all tasks'",
// Windows-spezifischer Befehl könnte anders sein, z.B. "command": "echo 'Terminating all tasks'"
"problemMatcher": [] "problemMatcher": []
},
{
"label": "Start Backend for Frontend",
"type": "shell",
"command": "npx ts-node src/index.ts",
"options": {
"cwd": "${workspaceFolder}/backend"
},
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": {
"regexp": "^.*$",
"file": 1,
"location": 2,
"message": 3
},
"background": {
"activeOnStart": true,
"beginsPattern": "^.*$",
"endsPattern": "^Server läuft auf Port.*$"
}
}
} }
], ],
"inputs": [ "inputs": [
{ {
"id": "terminate", "id": "terminate",