From cb2034cfda3943316c2d23471e96c6f211aede48 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 15 Sep 2023 10:01:09 +0200 Subject: [PATCH] chore: add `.devcontainer` (#1633) --- .devcontainer/devcontainer.json | 21 +++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..94a40af30e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,21 @@ +// https://code.visualstudio.com/docs/devcontainers/containers +// https://containers.dev/implementors/json_reference/ +{ + "name": "nitro-devcontainer", + "forwardPorts": [3000], + "image": "node:18", + "features": {}, + "customizations": { + "vscode": { + "settings": {}, + "extensions": [ + "ms-azuretools.vscode-docker", + "dbaeumer.vscode-eslint", + "github.vscode-github-actions", + "esbenp.prettier-vscode" + ] + } + }, + "postStartCommand": "corepack enable && pnpm install", + "mounts": ["type=volume,target=${containerWorkspaceFolder}/node_modules"] +} diff --git a/.gitignore b/.gitignore index ce335e4da2..5889f25d42 100644 --- a/.gitignore +++ b/.gitignore @@ -71,3 +71,5 @@ staticwebapp.config.json playground/firebase.json test/fixture/functions + +.pnpm-store