Merge pull request #1308 from ONLYOFFICE/feature/vscode-tasks

feature/vscode-tasks
This commit is contained in:
Alexey Safronov 2023-04-27 17:04:06 +04:00 committed by GitHub
commit 53704749bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 64 additions and 0 deletions

63
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,63 @@
{
"version": "2.0.0",
"problemMatcher": [],
"presentation": {
"focus": true,
"close": true
},
"tasks": [
{
"label": "Frontend | Start",
"type": "shell",
"command": "cd ${workspaceFolder} ; yarn start"
},
{
"label": "Backend | Build",
"type": "shell",
"command": "${workspaceFolder}/build/build.backend.docker.sh",
"windows": {
"command": "${workspaceFolder}\\build\\build.bat"
}
},
{
"label": "Backend | Start",
"type": "shell",
"command": "${workspaceFolder}/build/start/start.backend.docker.sh",
"windows": {
"command": "${workspaceFolder}\\build\\start\\start.bat"
}
},
{
"label": "Backend | Restart",
"type": "shell",
"command": "${workspaceFolder}/build/start/restart.backend.docker.sh",
"windows": {
"command": "${workspaceFolder}\\build\\start\\restart.bat"
}
},
{
"label": "Backend | Stop",
"type": "shell",
"command": "${workspaceFolder}/build/start/stop.backend.docker.sh",
"windows": {
"command": "${workspaceFolder}\\build\\start\\stop.bat"
}
}
],
"inputs": [
{
"id": "start-param",
"description": "Command",
"default": "Start",
"type": "pickString",
"options": ["Start", "Restart", "Stop"]
},
{
"id": "local-docker",
"description": "Manipulation",
"default": "Local",
"type": "pickString",
"options": ["Local", "Docker"]
}
]
}

View File

@ -1,5 +1,6 @@
#!/bin/bash
rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo "Run script directory:" $dir