Skip to content

Commit 5b287f0

Browse files
committed
Merge branch 'master' into opam-2.0-dev-setup
2 parents 1d123e0 + 574d4ac commit 5b287f0

File tree

6,205 files changed

+87184
-200226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,205 files changed

+87184
-200226
lines changed

.devcontainer/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
2+
LABEL org.opencontainers.image.authors="Christoph Knittel <[email protected]>"
3+
LABEL org.opencontainers.image.description="Docker image for ReScript development."
4+
5+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6+
&& apt-get -y install --no-install-recommends \
7+
opam \
8+
musl-tools \
9+
python-is-python3 \
10+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "ReScript Compiler",
3+
"build": {
4+
"context": ".",
5+
"dockerfile": "Dockerfile"
6+
},
7+
"features": {
8+
"ghcr.io/devcontainers/features/github-cli:1": {
9+
"installDirectlyFromGitHubRelease": true,
10+
"version": "latest"
11+
},
12+
"ghcr.io/devcontainers/features/node:1": {
13+
"version": "20"
14+
}
15+
},
16+
"customizations": {
17+
"vscode": {
18+
"extensions": [
19+
"ocamllabs.ocaml-platform",
20+
"chenglou92.rescript-vscode",
21+
"biomejs.biome",
22+
"rust-lang.rust-analyzer"
23+
]
24+
}
25+
},
26+
"postCreateCommand": ".devcontainer/postCreate.sh"
27+
}

.devcontainer/postCreate.sh

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

.github/stale.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)