From e29612adbcf4a048cfdcf12def025b313993cc66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Fri, 17 Oct 2025 07:55:15 +0000 Subject: [PATCH] chore: add basic dev container config --- .devcontainer/devcontainer.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..5d16f835106 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,25 @@ +{ + "name": "Vaadin Web Components Dev Container", + "image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm", + "features": { + "ghcr.io/devcontainers/features/github-cli:1": {} + }, + "forwardPorts": [ + 8000 + ], + "mounts": [ + // Mount node_modules from volume instead of from file system. Should + // improve FS performance on macOS and Windows and avoids installing Linux + // specific binaries on host system. + "source=web-components-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume" + ], + "postCreateCommand": "sudo chown node node_modules && yarn install && yarn playwright install chromium firefox webkit --with-deps", + // Allow node user in the container to access the Git repository, which is + // otherwise owned by the host system user. + "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}", + "customizations": { + "jetbrains": { + "backend": "WebStorm" + } + }, +}