add launch and tasks
This commit is contained in:
@@ -13,3 +13,5 @@ docker-compose-db.yml
|
||||
Dockerfile
|
||||
.env.example
|
||||
README.md
|
||||
|
||||
.vscode/launch.json
|
||||
|
||||
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": "${workspaceFolder}/cmd/${REPO_NAME_SNAKE}",
|
||||
"args": [
|
||||
"--local"
|
||||
],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"buildFlags": "-tags local"
|
||||
},
|
||||
{
|
||||
"name": "Launch for tests",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": "${workspaceFolder}/cmd/${REPO_NAME_SNAKE}",
|
||||
"args": [
|
||||
"--local"
|
||||
],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"buildFlags": "-tags local",
|
||||
"env": {
|
||||
"STORY_FILENAME": "./internal/tests/story.json",
|
||||
"DB_FILENAME": "./internal/tests/store.db"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Gen Config",
|
||||
"type": "shell",
|
||||
"isBackground": true,
|
||||
"command": "make generate",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
},
|
||||
"problemMatcher": [
|
||||
"$go"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Tests",
|
||||
"type": "shell",
|
||||
"isBackground": true,
|
||||
"command": "make test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
},
|
||||
"problemMatcher": [
|
||||
"$go"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user