feat: add VS Code Compose tasks for local full-stack testing
Adds Compose: Build & Up, Up, Down, Logs tasks for both Windows and Linux, allowing the complete app to be tested locally via docker-compose on port 8080. Updates README task table to reflect all available tasks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
144
.vscode/tasks.json
vendored
144
.vscode/tasks.json
vendored
@@ -151,6 +151,150 @@
|
||||
"group": "build",
|
||||
"presentation": { "reveal": "always", "panel": "shared" },
|
||||
"problemMatcher": ["$tsc"]
|
||||
},
|
||||
|
||||
// ── Compose: Build (local test image) ──────────────────────────────────────
|
||||
{
|
||||
"label": "Compose: Build (Windows)",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "docker compose -f docker/docker-compose.yml build"
|
||||
},
|
||||
"group": "build",
|
||||
"presentation": { "reveal": "always", "panel": "shared" },
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Compose: Build (Linux)",
|
||||
"type": "shell",
|
||||
"linux": {
|
||||
"command": "docker compose -f docker/docker-compose.yml build"
|
||||
},
|
||||
"group": "build",
|
||||
"presentation": { "reveal": "always", "panel": "shared" },
|
||||
"problemMatcher": []
|
||||
},
|
||||
|
||||
// ── Compose: Up ────────────────────────────────────────────────────────────
|
||||
{
|
||||
"label": "Compose: Up (Windows)",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "docker compose -f docker/docker-compose.yml up"
|
||||
},
|
||||
"group": "test",
|
||||
"isBackground": true,
|
||||
"presentation": { "reveal": "always", "panel": "dedicated" },
|
||||
"problemMatcher": {
|
||||
"pattern": { "regexp": ".", "file": 1, "line": 2, "message": 3 },
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Starting",
|
||||
"endsPattern": "Archivum listening"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Compose: Up (Linux)",
|
||||
"type": "shell",
|
||||
"linux": {
|
||||
"command": "docker compose -f docker/docker-compose.yml up"
|
||||
},
|
||||
"group": "test",
|
||||
"isBackground": true,
|
||||
"presentation": { "reveal": "always", "panel": "dedicated" },
|
||||
"problemMatcher": {
|
||||
"pattern": { "regexp": ".", "file": 1, "line": 2, "message": 3 },
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Starting",
|
||||
"endsPattern": "Archivum listening"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// ── Compose: Down ──────────────────────────────────────────────────────────
|
||||
{
|
||||
"label": "Compose: Down (Windows)",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "docker compose -f docker/docker-compose.yml down"
|
||||
},
|
||||
"group": "test",
|
||||
"presentation": { "reveal": "always", "panel": "shared" },
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Compose: Down (Linux)",
|
||||
"type": "shell",
|
||||
"linux": {
|
||||
"command": "docker compose -f docker/docker-compose.yml down"
|
||||
},
|
||||
"group": "test",
|
||||
"presentation": { "reveal": "always", "panel": "shared" },
|
||||
"problemMatcher": []
|
||||
},
|
||||
|
||||
// ── Compose: Build & Up (one-shot local test) ──────────────────────────────
|
||||
{
|
||||
"label": "Compose: Build & Up (Windows)",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "docker compose -f docker/docker-compose.yml up --build"
|
||||
},
|
||||
"group": "test",
|
||||
"isBackground": true,
|
||||
"presentation": { "reveal": "always", "panel": "dedicated" },
|
||||
"problemMatcher": {
|
||||
"pattern": { "regexp": ".", "file": 1, "line": 2, "message": 3 },
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Building",
|
||||
"endsPattern": "Archivum listening"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Compose: Build & Up (Linux)",
|
||||
"type": "shell",
|
||||
"linux": {
|
||||
"command": "docker compose -f docker/docker-compose.yml up --build"
|
||||
},
|
||||
"group": "test",
|
||||
"isBackground": true,
|
||||
"presentation": { "reveal": "always", "panel": "dedicated" },
|
||||
"problemMatcher": {
|
||||
"pattern": { "regexp": ".", "file": 1, "line": 2, "message": 3 },
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": "Building",
|
||||
"endsPattern": "Archivum listening"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// ── Compose: Logs ──────────────────────────────────────────────────────────
|
||||
{
|
||||
"label": "Compose: Logs (Windows)",
|
||||
"type": "shell",
|
||||
"windows": {
|
||||
"command": "docker compose -f docker/docker-compose.yml logs -f"
|
||||
},
|
||||
"group": "test",
|
||||
"isBackground": true,
|
||||
"presentation": { "reveal": "always", "panel": "dedicated" },
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Compose: Logs (Linux)",
|
||||
"type": "shell",
|
||||
"linux": {
|
||||
"command": "docker compose -f docker/docker-compose.yml logs -f"
|
||||
},
|
||||
"group": "test",
|
||||
"isBackground": true,
|
||||
"presentation": { "reveal": "always", "panel": "dedicated" },
|
||||
"problemMatcher": []
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user