diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ddf7481 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,38 @@ +{ + "name": "Ctrl-Alt-GG Care (Hugo + Tailwind)", + "image": "mcr.microsoft.com/devcontainers/javascript-node:1-bookworm", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "version": "lts" + }, + "ghcr.io/devcontainers/features/hugo:1": { + "extended": true, + "version": "latest" + }, + "ghcr.io/devcontainers/features/git:1": {} + }, + "postCreateCommand": "npm ci", + "forwardPorts": [1313], + "portsAttributes": { + "1313": { + "label": "Hugo dev server", + "onAutoForward": "notify" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "budparr.language-hugo-vscode", + "bradlc.vscode-tailwindcss", + "tamasfe.even-better-toml", + "esbenp.prettier-vscode", + "editorconfig.editorconfig" + ], + "settings": { + "files.eol": "\n", + "terminal.integrated.defaultProfile.linux": "bash" + } + } + }, + "remoteUser": "node" +} diff --git a/package.json b/package.json index 8157ca9..05c64f1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "scripts": { "dev:css": "tailwindcss -i ./assets/css/main.css -o ./assets/css/compiled/main.css --watch", - "dev:hugo": "hugo server", + "dev:hugo": "hugo server --bind 0.0.0.0", "dev": "npm run build:css && (npm run dev:css & npm run dev:hugo)", "build:css": "tailwindcss -i ./assets/css/main.css -o ./assets/css/compiled/main.css", "build:hugo": "hugo",