Backend/.vscode/tasks.json
zervo a3e044dec5 Improved strings, CI & schedules base
Improved some strings, added the basics to prepare for integrating schedules again, and added basic Forgejo CI.
2024-12-06 21:53:37 +01:00

40 lines
No EOL
1 KiB
JSON

{
"version": "2.0.0",
"type": "shell",
"command": "go",
"cwd": "${workspaceFolder}",
"tasks": [
{
"label": "install",
"args": ["install", "-v", "./..."],
"group": "build",
},
{
"label": "run file",
"args": ["run", "${file}"],
"group": "build",
},
{
"label": "run project",
"args": ["run", "./cmd/stbackend/main.go"],
"group": "build",
"options":{
"env":{
"DATABASE_URL": "test",
"DATABASE_DIALECT": "sqlite",
"JWT_SECRET": "JwTDeVSeCRet15243"
}
},
},
{
"label": "build project",
"args": ["build", "-x", "-v", "-o=stbackend", "-buildvcs=true", "./cmd/stbackend/main.go"],
"group": "build"
},
{
"label": "test",
"args": ["test", "-v", "./..."],
"group": "test",
},
],
}