Skip to content

Commit e27015a

Browse files
committed
Add devcontainer json
1 parent 5e6c891 commit e27015a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "ReScript Compiler",
3+
"build": {
4+
"context": "..",
5+
"dockerfile": "../docker/Dockerfile"
6+
},
7+
"features": {},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"chenglou92.rescript-vscode",
12+
"biomejs.biome"
13+
]
14+
}
15+
},
16+
"postCreateCommand": ".devcontainer/postCreate.sh"
17+
}

.devcontainer/postCreate.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
# Install dev dependencies from OPAM
4+
opam install . --deps-only -y
5+
6+
# For IDE support, install the OCaml language server
7+
opam install ocaml-lsp-server -y
8+
9+
# Add OPAM environment setup to shell startup script
10+
echo 'eval $(opam env)' >> ~/.bashrc
11+
12+
npm install --ignore-scripts

0 commit comments

Comments
 (0)