diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9bc4fbe..67c763c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,8 +9,20 @@ "version": "lts", "installPnpm": true }, - "ghcr.io/devcontainers/features/git:1": { + "ghcr.io/devcontainers/features/git:1": {} + }, + "forwardPorts": [ + 1313 + ], + "portsAttributes": { + "1313": { + "label": "Hugo server", + "onAutoForward": "openPreview" } }, + "containerEnv": { + "HUGO_BIND": "0.0.0.0", + "HUGO_POLL_INTERVAL": "700ms" + }, "postCreateCommand": "sudo apt update && sudo apt install -y jq && pnpm install --save-dev @playwright/test@latest && pnpm exec playwright install --with-deps" -} +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index a1bd6ef..1afc20c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ node_modules artifacts .pnpm-store test-results -.vscode .pnpm-lock.yaml \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..766786b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,27 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Serve", + "type": "shell", + "command": "hugo server -s src/ -D --poll 700 --bind 0.0.0.0", + "group": { + "kind": "test", + "isDefault": true + }, + "isBackground": true, + "problemMatcher": [] + }, + { + "label": "Debug", + "type": "shell", + "command": "hugo server -e a11y-debug -s src/ -D --poll 700 --bind 0.0.0.0", + "group": { + "kind": "test", + "isDefault": true + }, + "isBackground": true, + "problemMatcher": [] + } + ] +}