„.vscode/tasks.json“ ändern
This commit is contained in:
178
.vscode/tasks.json
vendored
178
.vscode/tasks.json
vendored
@@ -1,81 +1,101 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Install Backend Dependencies",
|
"label": "Install Backend Dependencies",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "npm install",
|
"command": "npm install",
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/backend"
|
"cwd": "${workspaceFolder}/backend"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Start Backend",
|
|
||||||
"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.*$"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Start Frontend",
|
|
||||||
"dependsOn": ["Start Backend"],
|
|
||||||
"type": "shell",
|
|
||||||
"command": "BROWSER=none npm start",
|
|
||||||
"options": { "cwd": "${workspaceFolder}/frontend" },
|
|
||||||
"isBackground": true,
|
|
||||||
"problemMatcher": {
|
|
||||||
"owner": "javascript",
|
|
||||||
"pattern": {
|
|
||||||
"regexp": "^.*$",
|
|
||||||
"file": 1,
|
|
||||||
"location": 2,
|
|
||||||
"message": 3
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"activeOnStart": true,
|
|
||||||
"beginsPattern": "^.*$",
|
|
||||||
"endsPattern": "Compiled successfully"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"type": "shell",
|
|
||||||
"label": "Docker Build",
|
|
||||||
"command": "docker build --build-arg NODE_VERSION=$(node -v) -t ${workspaceFolderBasename} .",
|
|
||||||
"group": "build"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Terminate All Tasks",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "echo 'Terminating all tasks'",
|
|
||||||
// Windows-spezifischer Befehl könnte anders sein, z.B. "command": "echo 'Terminating all tasks'"
|
|
||||||
"problemMatcher": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
|
|
||||||
"inputs": [
|
|
||||||
{
|
|
||||||
"id": "terminate",
|
|
||||||
"type": "command",
|
|
||||||
"command": "workbench.action.tasks.terminate",
|
|
||||||
"args": "terminateAll"
|
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
"label": "Start Backend",
|
||||||
|
"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.*$"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Start Frontend",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "npm start",
|
||||||
|
"dependsOn": ["Start Backend"],
|
||||||
|
"options": { "cwd": "${workspaceFolder}/frontend" },
|
||||||
|
"isBackground": true,
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "javascript",
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "^.*$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*$",
|
||||||
|
"endsPattern": "Compiled successfully"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"label": "Docker Build",
|
||||||
|
"command": "docker build --build-arg NODE_VERSION=$(node -v) -t ${workspaceFolderBasename} .",
|
||||||
|
"group": "build"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Terminate All Tasks",
|
||||||
|
"command": "echo ${input:terminate}",
|
||||||
|
"type": "shell",
|
||||||
|
"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",
|
||||||
|
"type": "command",
|
||||||
|
"command": "workbench.action.tasks.terminate",
|
||||||
|
"args": "terminateAll"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user