„.vscode/tasks.json“ ändern
This commit is contained in:
36
.vscode/tasks.json
vendored
36
.vscode/tasks.json
vendored
@@ -8,7 +8,7 @@
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/backend"
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "Start Backend",
|
||||
"type": "shell",
|
||||
@@ -34,9 +34,9 @@
|
||||
},
|
||||
{
|
||||
"label": "Start Frontend",
|
||||
"dependsOn": ["Start Backend"],
|
||||
"type": "shell",
|
||||
"command": "BROWSER=none npm start",
|
||||
"command": "npm start",
|
||||
"dependsOn": ["Start Backend"],
|
||||
"options": { "cwd": "${workspaceFolder}/frontend" },
|
||||
"isBackground": true,
|
||||
"problemMatcher": {
|
||||
@@ -54,7 +54,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"type": "shell",
|
||||
"label": "Docker Build",
|
||||
@@ -63,13 +62,34 @@
|
||||
},
|
||||
{
|
||||
"label": "Terminate All Tasks",
|
||||
"command": "echo ${input:terminate}",
|
||||
"type": "shell",
|
||||
"command": "echo 'Terminating all tasks'",
|
||||
// Windows-spezifischer Befehl könnte anders sein, z.B. "command": "echo 'Terminating all tasks'"
|
||||
"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": [
|
||||
{
|
||||
"id": "terminate",
|
||||
@@ -78,4 +98,4 @@
|
||||
"args": "terminateAll"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user