From 94a51c96f820360f3a0d3b5716768dcc3f278ae4 Mon Sep 17 00:00:00 2001 From: Matthew Holloway Date: Tue, 12 Nov 2024 20:57:26 +0000 Subject: [PATCH] chore: devcontainer (#15) --- .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++ .vscode/launch.json | 21 +++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .vscode/launch.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..9fc25c4 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "rfced-www", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + "forwardPorts": [3000], + + "portsAttributes": { + "3000": { + "label": "Nuxt", + "onAutoForward": "silent" + } + }, + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "cd client && npm install" + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f8f44f0 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // 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": "Dev server", + "type": "node", + "request": "launch", + "cwd": "${workspaceRoot}/client", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run-script", "dev" + ], + "presentation": { + "hidden": false + } + } + ] +} \ No newline at end of file