From fe60780cf62682867e5fd938f37c3594306bea46 Mon Sep 17 00:00:00 2001 From: Lars van Vianen Date: Sun, 25 Aug 2024 07:44:01 +0200 Subject: [PATCH] Update devcontainer.json --- .devcontainer/devcontainer.json | 58 +++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a1a7d5c..492e475 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,56 @@ { - "name": "devenv", - "dockerFile": "Dockerfile" -} + "name": "Stylescape DevContainer", + "build": { + "dockerfile": "Dockerfile", + "context": "." + }, + "image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "version": "18" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "ms-python.python", + "ms-vscode.vscode-typescript-next", + "stylelint.vscode-stylelint", + "streetsidesoftware.code-spell-checker", + "redhat.vscode-yaml", + "PKief.material-icon-theme", + "syler.sass-indented", + "vscode-icons-team.vscode-icons", + "jinja.html-formatter", + "ritwickdey.LiveServer", + "gruntfuggly.todo-tree", + "svelte.svelte-vscode", + "octref.vetur" // Vue.js support + ], + "settings": { + "editor.formatOnSave": true, + "terminal.integrated.shell.linux": "/bin/bash", + "files.associations": { + "*.jinja": "jinja" + } + } + } + }, + "forwardPorts": [ + 3000 + ], + "postCreateCommand": "npm install && pip3 install -r requirements.txt", + "remoteUser": "vscode", + "workspaceFolder": "/workspace", + "mounts": [ + "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached" + ], + "remoteEnv": { + "NODE_ENV": "development" + }, + "containerEnv": { + "NODE_ENV": "development" + } +} \ No newline at end of file