150 lines
2.6 KiB
JSON
150 lines
2.6 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Start Development Server",
|
|
"type": "shell",
|
|
"command": "npm",
|
|
"args": [
|
|
"run",
|
|
"dev"
|
|
],
|
|
"group": "build",
|
|
"isBackground": true,
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "new",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "Docker: Start Development",
|
|
"type": "shell",
|
|
"command": "docker",
|
|
"args": [
|
|
"compose",
|
|
"-f",
|
|
"docker-compose.dev.yml",
|
|
"up",
|
|
"--build"
|
|
],
|
|
"group": "build",
|
|
"isBackground": true,
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "new",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "Docker: Stop Development",
|
|
"type": "shell",
|
|
"command": "docker",
|
|
"args": [
|
|
"compose",
|
|
"-f",
|
|
"docker-compose.dev.yml",
|
|
"down"
|
|
],
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "new",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "Docker: Build Image",
|
|
"type": "shell",
|
|
"command": "docker",
|
|
"args": [
|
|
"build",
|
|
"-t",
|
|
"skrzynka-impostora-bot:latest",
|
|
"."
|
|
],
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "new",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "Docker: View Logs",
|
|
"type": "shell",
|
|
"command": "docker",
|
|
"args": [
|
|
"compose",
|
|
"-f",
|
|
"docker-compose.dev.yml",
|
|
"logs",
|
|
"-f"
|
|
],
|
|
"group": "test",
|
|
"isBackground": true,
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "new",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "Deploy Commands to Discord",
|
|
"type": "shell",
|
|
"command": "npm",
|
|
"args": [
|
|
"run",
|
|
"deploy"
|
|
],
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "new",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
}
|
|
]
|
|
} |