51 lines
814 B
JSON
51 lines
814 B
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"type": "go",
|
|
"label": "go: build package",
|
|
"command": "build",
|
|
"args": [
|
|
"-C", "${workspaceFolder}/app", "-o", "bin/service.exec"
|
|
],
|
|
"problemMatcher": [
|
|
"$go"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
},
|
|
{
|
|
"label": "Dev Server",
|
|
"type": "shell",
|
|
"command": "pwd;go",
|
|
"args": [
|
|
"run",
|
|
"."
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/app"
|
|
},
|
|
"problemMatcher": [
|
|
"$go"
|
|
],
|
|
"group": "test"
|
|
},
|
|
{
|
|
"label": "openapi: generate",
|
|
"type": "shell",
|
|
"command": "oapi-codegen",
|
|
"args": [
|
|
"-config",
|
|
"openapi/cfg.yaml",
|
|
"openapi/openapi.yaml"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/app"
|
|
},
|
|
"problemMatcher": [],
|
|
"group": "none"
|
|
}
|
|
]
|
|
} |