45 lines
987 B
JSON
Executable File
45 lines
987 B
JSON
Executable File
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "prepare-swaggo",
|
|
"type": "shell",
|
|
"command": "go install github.com/swaggo/swag/cmd/swag@latest"
|
|
},
|
|
{
|
|
"label": "prepare-go",
|
|
"type": "shell",
|
|
"command": "go mod tidy"
|
|
},
|
|
{
|
|
"label": "swaggo-init",
|
|
"dependsOn": ["prepare-swaggo"],
|
|
"type": "shell",
|
|
"command": "swag init --ot json"
|
|
},
|
|
{
|
|
"label": "prepare",
|
|
"dependsOn": ["prepare-go", "swaggo-init"]
|
|
},
|
|
{
|
|
"label": "prepare-node",
|
|
"type": "shell",
|
|
"command": "npm install",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/web"
|
|
}
|
|
},
|
|
{
|
|
"label": "prepare-web",
|
|
"dependsOn": ["prepare-node"],
|
|
"type": "shell",
|
|
"command": "npm run dev",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/web"
|
|
}
|
|
}
|
|
]
|
|
}
|