Skip to content

Commit a2e9865

Browse files
committed
Initial test setup
0 parents  commit a2e9865

File tree

6,778 files changed

+749924
-0
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,778 files changed

+749924
-0
lines changed

.devcontainer/.dockerignore

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
*~
2+
_build
3+
*.obj
4+
*.out
5+
*.compile
6+
*.native
7+
*.byte
8+
*.cmo
9+
*.annot
10+
*.cmi
11+
*.cmx
12+
*.cmt
13+
*.cmti
14+
*.cma
15+
*.a
16+
*.cmxa
17+
*.obj
18+
*~
19+
*.annot
20+
*.mj
21+
*.bak
22+
*.swp
23+
*.swo
24+
*.flambda
25+
*.jsx
26+
*.lambda
27+
*.rawlambda
28+
*.s
29+
*.o
30+
*.lam
31+
*.0.js
32+
*#
33+
*.log
34+
.#*
35+
*.cmj
36+
*.rawlambda
37+
*.lambda
38+
*.zip
39+
*.mlast
40+
*.mliast
41+
42+
.idea
43+
.DS_Store
44+
45+
node_modules
46+
*.dump
47+
coverage
48+
49+
.ninja_log
50+
.bsdeps
51+
.bsbuild
52+
lib/ocaml
53+
tests/build_tests/*/lib/
54+
#ignore temporary directory
55+
*.goog.js
56+
*.jsoo.js
57+
*.so
58+
tmp/
59+
tracing*.json
60+
61+
_opam
62+
63+
.env
64+
playground/packages/
65+
playground/stdlib/
66+
playground/*.cmj
67+
playground/*.cmi
68+
playground/.netrc
69+
playground/compiler.*js
70+
71+
rewatch/target/
72+
rewatch/rewatch
73+
74+
tests/tools_tests/**/*.res.js
75+
tests/tools_tests/lib
76+
tests/analysis_tests*/lib
77+
tests/analysis_tests/**/*.bs.js
78+
79+
/linux/*.exe
80+
/linuxarm64/*.exe
81+
/darwin/*.exe
82+
/darwinarm64/*.exe
83+
/win32/*.exe
84+
85+
.yarn/*
86+
!.yarn/patches
87+
!.yarn/plugins
88+
!.yarn/releases
89+
!.yarn/sdks
90+
!.yarn/versions
91+
92+
*.tsbuildinfo
93+
94+
# package tarballs
95+
package.tgz
96+
*.exe
97+
98+
/ninja/ninja
99+
/ninja/build.ninja

.devcontainer/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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 sudo apt-get update && export DEBIAN_FRONTEND=noninteractive \
6+
&& apt-get -y install --no-install-recommends \
7+
cmake \
8+
ninja-build \
9+
musl-tools \
10+
python-is-python3 \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
# Install OPAM
14+
ARG OPAM_VERSION=2.4.1
15+
RUN printf '\n\n' | bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --version $OPAM_VERSION"

.devcontainer/devcontainer.json

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

.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.3.0
6+
opam install . --deps-only --with-test --with-dev-setup -y
7+
8+
# Add OPAM environment setup to shell startup script
9+
echo 'eval $(opam env)' >> ~/.zshrc
10+
echo 'eval $(opam env)' >> ~/.bashrc
11+
12+
nvm install
13+
14+
corepack enable
15+
printf "\n" | yarn

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* text=auto eol=lf
2+
3+
*.ml linguist-language=OCaml
4+
*.mli linguist-language=OCaml
5+
*.res linguist-language=ReScript
6+
*.resi linguist-language=ReScript
7+
8+
.yarn/releases/* binary linguist-vendored
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: 🚨 Bug report
3+
about: Create a report to help us improve the ReScript compiler and build system
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Thank you for filing! Check list:
11+
12+
- [ ] Is it a bug? Usage questions should often be asked in the [forum](https://forum.rescript-lang.org) instead.
13+
- [ ] Concise, focused, friendly issue title & description.
14+
- [ ] A [minimal, reproducible example](http://sscce.org).
15+
- [ ] OS and browser versions, if relevant.
16+
- [ ] Is it already fixed in master? [Instructions](https://github.com/rescript-lang/rescript-compiler/blob/master/CONTRIBUTING.md#debugging-issues-from-ci-builds)

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 📝 rescript-lang.org
4+
url: https://github.com/rescript-association/rescript-lang.org/issues
5+
about: Please report problems about the documentation page here.
6+
- name: 💻 rescript-vscode
7+
url: https://github.com/rescript-lang/rescript-vscode/issues
8+
about: VSCode language support, LSP, tools
9+
- name: 📦 create-rescript-app
10+
url: https://github.com/rescript-lang/create-rescript-app/issues
11+
about: ReScript's project generator
12+
- name: ⚛️ rescript-react
13+
url: https://github.com/rescript-lang/rescript-react/issues
14+
about: ReScript bindings to React.js
15+
- name: 🌐 rescript-core
16+
url: https://github.com/rescript-association/rescript-core/issues
17+
about: New ReScript standard library
18+
- name: 💬 ReScript Forum
19+
url: https://forum.rescript-lang.org/
20+
about: For discussions about ReScript, please visit the official ReScript forum.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: 💡 Feature request
3+
about: Suggest a new feature/RFC for the ReScript compiler and build system
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+

0 commit comments

Comments
 (0)