From b0593fcb0a0e5751148ea74ca9d8d5e3f17b3aa6 Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 28 Jul 2023 13:46:36 -0400 Subject: [PATCH] [skip ci] add dev container config --- .devcontainer/devcontainer.json | 32 ++++++++++++++++++++++++++++++++ .vscode/extensions.json | 6 ++++++ docs/CONTRIBUTING.md | 4 +++- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..d1cb0ba9dc --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +{ + "name": "blockscout dev", + "image": "mcr.microsoft.com/devcontainers/typescript-node:18", + "forwardPorts": [ 3000 ], + "customizations": { + "vscode": { + "settings": { + "terminal.integrated.defaultProfile.linux": "zsh", + "terminal.integrated.profiles.linux": { + "zsh": { + "path": "/bin/zsh" + } + } + }, + "extensions": [ + "streetsidesoftware.code-spell-checker", + "formulahendry.auto-close-tag", + "formulahendry.auto-rename-tag", + "dbaeumer.vscode-eslint", + "eamodio.gitlens", + "yatki.vscode-surround", + "simonsiefke.svg-preview" + ] + } + }, + "features": { + "ghcr.io/devcontainers-contrib/features/zsh-plugins:0": { + "plugins": "npm", + "omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions" + } + } +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 60381b1462..e2c659e246 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,8 +1,14 @@ { "recommendations": [ + "streetsidesoftware.code-spell-checker", "formulahendry.auto-close-tag", "formulahendry.auto-rename-tag", "dbaeumer.vscode-eslint", "eamodio.gitlens", + "ms-vscode-remote.remote-containers", + "ms-azuretools.vscode-docker", + "github.vscode-pull-request-github", + "yatki.vscode-surround", + "simonsiefke.svg-preview" ] } diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 52ed584559..85795dcc6a 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -161,4 +161,6 @@ We have 3 pre-configured projects. You can run your test with the desired projec There are some predefined tasks for all commands described above. You can see its full list by pressing cmd + shift + P and using command `Task: Run task` -Also there is a Jest test launch configuration for debugging and running current test file in the watch mode. \ No newline at end of file +Also there is a Jest test launch configuration for debugging and running current test file in the watch mode. + +And you may find the Dev Container setup useful too. \ No newline at end of file