Skip to content

Commit 2d1cf26

Browse files
devcontainer: add features (node, ruby, git), VS Code extensions, and postCreateCommand for repo setup
1 parent 07f1023 commit 2d1cf26

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

‎.devcontainer/devcontainer.json‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
{
22
"image": "mcr.microsoft.com/devcontainers/universal:2",
3-
"features": {}
3+
"features": {
4+
"ghcr.io/devcontainers/features/node": {
5+
"version": "18"
6+
},
7+
"ghcr.io/devcontainers/features/ruby": {
8+
"version": "3.1"
9+
},
10+
"ghcr.io/devcontainers/features/git": {}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"asciidoctor.asciidoctor-vscode",
16+
"rebornix.ruby",
17+
"redhat.vscode-yaml",
18+
"editorconfig.editorconfig",
19+
"eamodio.gitlens"
20+
]
21+
}
22+
},
23+
"postCreateCommand": "if [ -f Gemfile ]; then gem install bundler && bundle install; fi\nif [ -f package.json ]; then npm install; fi\nif [ -f Makefile ]; then make deps || true; fi",
24+
"remoteUser": "vscode"
425
}

0 commit comments

Comments
 (0)