Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
673 commits
Select commit Hold shift + click to select a range
64624e2
Ignore shadowed bindings when generating doc output (#7497)
mediremi May 21, 2025
af43e11
Suggest awaiting promise before using it when type mismatches (#7498)
zth May 21, 2025
febf7cb
Add RegExp.flags external and corresponding tests (#7461)
jmagaram May 21, 2025
952bdd4
Missing files in gentype test.
cristianoc May 22, 2025
c08a437
First yarn build, and then yarn check.
cristianoc May 22, 2025
3cbc730
Improve function apply error messages (#7496)
zth May 22, 2025
a086887
Change completions of regex literals (#7425)
zth May 22, 2025
7b4bc42
update test output
zth May 22, 2025
e2e1e3c
Allow oneliner when including module with single type alias (#7502)
nojaf May 22, 2025
2193869
Improve various error messages (#7500)
zth May 22, 2025
021682a
Add `Array.findLast` and `Array.findLastIndex` bindings (#7503)
mediremi May 22, 2025
6f799bc
Add optional `~options` argument to `Console.dir` (#7504)
mediremi May 22, 2025
01ee097
Hint about coercion in error msg (#7505)
zth May 23, 2025
893f19f
Revert "Disable OPAM cache for now (#7489)" (#7514)
cknitt May 24, 2025
66723ba
Remove pipe last (|>) syntax (#7512)
cknitt May 24, 2025
d23316c
Rename functions ending with `Exn` to `OrThrow`
DZakh May 24, 2025
dd1f753
Revert "Rename functions ending with `Exn` to `OrThrow`"
DZakh May 24, 2025
f985ab1
Show variant constructor's inline record types on hover (#7519)
mediremi May 24, 2025
7d3a0d0
Improve error message for pipe syntax (#7520)
cknitt May 25, 2025
c8e2639
Replace "raise" in tests with "throw"; treat "throw" like "raise" in …
cknitt May 26, 2025
6f4275c
Start work on improving subtype error messages (#7404)
zth May 26, 2025
97a81e5
Fix `index out of bounds` exception in `rescript-editor-analysis code…
mediremi May 26, 2025
3853ddf
Don't produce duplicate type definitions for recursive types (#7524)
mediremi May 27, 2025
4a2c1b1
Refactor the ast for record expressions and pattern.
cristianoc May 27, 2025
e63147f
In module declaration treat `M = {` as if it were `M : {`
cristianoc May 27, 2025
352fa02
Complete functions from included module (#7515)
nojaf May 29, 2025
56c60ee
Don't use ghost location in jsx transform (#7533)
nojaf Jun 2, 2025
1db1fc4
Turn eqeq in doc comments to asserts for testing (#7531)
DZakh Jun 2, 2025
af1eaa8
Standardize doc comments printing (#7529)
shulhi Jun 2, 2025
a5b8f7a
More error messages (#7522)
zth Jun 3, 2025
f97dd8d
Rename functions ending with `Exn` to `OrThrow` (#7518)
DZakh Jun 4, 2025
38414ac
Rewatch windows support (#7477)
jfrolich Jun 4, 2025
a375a47
Fix syntax benchmarks (#7539)
cknitt Jun 6, 2025
f4f7296
sync Reanalyze with the new API around exception (#7536)
tsnobip Jun 11, 2025
05be83f
Editor mode config option (#7541)
zth Jun 12, 2025
34ebfe0
Fix issue with partial application and user defined types.
cristianoc Jun 13, 2025
e81e1ff
Fix Windows CI (#7550)
cknitt Jun 14, 2025
1004d78
Improve array pattern spread error message (#7549)
mediremi Jun 15, 2025
6ddfd80
Add Iterator.prototype bindings (#7506)
nojaf Jun 16, 2025
ece0702
Support doc comment before variant (#7535)
shulhi Jun 16, 2025
35c8f0e
Update Stdlib_Iterator.resi (#7552)
nojaf Jun 16, 2025
f4c6214
Add docstrings for StdLib_Bool (#7556)
nojaf Jun 17, 2025
0ea2c00
automatically sync API docs on rescript-lang.org (#7555)
tsnobip Jun 17, 2025
e272f03
Rename Stdlib functions from Exn to OrThrow (#7554)
DZakh Jun 17, 2025
880ca0c
Fix apparent nondeterminism in pattern matching compilation. (#7557)
cristianoc Jun 17, 2025
1ca0ca3
Prepare for 12.0.0-alpha.14 release (#7553)
cknitt Jun 17, 2025
6ed4a12
Update required node.js version from v20 to v22 in CONTRIBUTING.md (#…
mediremi Jun 17, 2025
937d51b
Set version to 12.0.0-alpha.15 (#7559)
cknitt Jun 17, 2025
a76bba6
fix api docs download path (#7560)
tsnobip Jun 17, 2025
b9e2059
Add docstring for Null.compare and Null.equal (#7562)
nojaf Jun 18, 2025
1850fe5
Error message for when trying to await something that is not a promis…
zth Jun 18, 2025
6fe5c47
Update matching.ml
cristianoc Jun 18, 2025
15ebdcb
Test: ignore inferred arity in case of `%raw`.
cristianoc Jun 12, 2025
c44caf2
Pass the rewatch exit code through in wrapper script (#7565)
cknitt Jun 19, 2025
333b20c
Add 'type: "module"' to docstring_tests's package.json (#7567)
mediremi Jun 19, 2025
3d45c38
Pass existing location to children prop (#7540)
nojaf Jun 19, 2025
38459ba
add rewatch tests for files starting with lowercase letter (#7569)
tsnobip Jun 19, 2025
2c0a4eb
Remove @return(undefined_to_opt) and %undefined_to_opt primitive (#7462)
cknitt Jun 19, 2025
eb2c71b
Add docstring for Float.equal and Float.compare (#7568)
nojaf Jun 19, 2025
75afc52
Remove outdated Belt.Array documentation regarding stdlib's Array.get…
mediremi Jun 20, 2025
f2b49a9
Fix crash when `-bs-g` is used on untagged variants.
cristianoc Jun 26, 2025
3079bdb
remove redundant line in api-docs job (#7576)
tsnobip Jun 26, 2025
78415d5
Brush up a few object related error messages (#7580)
zth Jun 28, 2025
9516742
gentype_tests: clean using `rescript clean` instead `rm` command (#7572)
aspeddro Jun 29, 2025
6deee63
Rewatch cli refactor (#7551)
Bushuo Jun 30, 2025
e21d7c2
Add flag for preserve jsx mode to rescript.json (#7547)
nojaf Jul 1, 2025
9b49787
Make rewatch version number same as rescript version number (#7584)
cknitt Jul 1, 2025
2ed1742
Fix: Remove extra spaces in rewatch legacy test output and reset chan…
cknitt Jul 1, 2025
9b911ac
Rename Belt functions from Exn to OrThrow (#7581)
mediremi Jul 2, 2025
a20fa10
Remove deprecations from Belt functions ending in Exn (#7590)
mediremi Jul 3, 2025
50c72c5
Fix issue with preserve mode where `jsx` is declared as an external w…
cristianoc Jul 3, 2025
de15950
Docstrings for BigInt (#7592)
zth Jul 3, 2025
14f388b
Docstrings for ArrayBuffer (#7594)
zth Jul 3, 2025
d6fc76a
Add missing docstring for String (#7571)
nojaf Jul 4, 2025
cfa195a
Update CompilerArgs path help text (#7599)
nojaf Jul 4, 2025
6e6fe0a
Improve a few error messages around polymorphic variants (#7596)
zth Jul 4, 2025
8b2f3f5
Improve completions for inline record fields (#7601)
mediremi Jul 4, 2025
8e060f2
Support python >= 3.11 for ninja build (#7600)
cknitt Jul 4, 2025
ae01437
Make rewatch the default build system / cli (#7593)
cknitt Jul 5, 2025
15dc54d
Add credits for rewatch (#7607)
cknitt Jul 7, 2025
5d83897
test-rewatch: show actual error messages on "Error Cleaning/Building …
cknitt Jul 7, 2025
1863696
Naming: rewatch -> rescript (user facing) (#7606)
cknitt Jul 8, 2025
71a363c
Migrate Rewatch to Rust 2024 edition (#7602)
mediremi Jul 8, 2025
0533c8d
Rewatch: fix non-unicode stderr (#7613)
cknitt Jul 8, 2025
d70c7fa
rewatch: don't add deps to modules that are in packages that are not …
cknitt Jul 8, 2025
65c599f
fix: ignore warning config for non local deps (#7614)
Bushuo Jul 9, 2025
00cb4d0
Rewatch: fix panic if package.json name different from module name (#…
cknitt Jul 9, 2025
ce6e8ed
Fix finding the standard library for pnpm (#7615)
cknitt Jul 9, 2025
bf99e3e
Prepare for 12.0.0-alpha.15 release (#7619)
cknitt Jul 9, 2025
2ce5796
Set version to 12.0.0-beta.1 (#7620)
cknitt Jul 9, 2025
a8d8562
Use alpha.15 instead of pkg.pr.new for rewatch testrepo (#7621)
cknitt Jul 9, 2025
dcd0560
Experimental command to format code blocks embedded in docstrings (#7…
zth Jul 9, 2025
d2ef907
Remove uncurried handling from rewatch (#7625)
cknitt Jul 11, 2025
91a322b
Detect package name mismatch (#7604)
nojaf Jul 11, 2025
5797986
Add String.getSymbolUnsafe back to Stdlib (#7626)
nojaf Jul 11, 2025
9105535
Prepare for 12.0.0-beta.1 release (#7628)
cknitt Jul 11, 2025
507a751
Set version to 12.0.0-beta.2 (#7629)
cknitt Jul 11, 2025
556545d
Remove internal/unused -bs-v flag (#7627)
cknitt Jul 11, 2025
abdb393
Remove Rescript_cpp module, -bs-D and -bs-list-conditionals (#7631)
cknitt Jul 11, 2025
7c7a004
Remove obsolete jsx options (#7633)
cknitt Jul 11, 2025
fecb194
Remove obsolete option -bs-unsafe-empty-array (#7635)
cknitt Jul 12, 2025
bc0f356
Clean up config.ml (#7636)
cknitt Jul 12, 2025
3a1efb4
Re-enable artifact list check (#7639)
cknitt Jul 12, 2025
5547386
Check Rust code formatting in CI (#7640)
cknitt Jul 12, 2025
9454207
Rewatch: simplify getting bsc path (#7634)
cknitt Jul 12, 2025
8658e1c
Add missing backtick and spaces to `Belt.Map.map` doc comment (#7632)
mediremi Jul 12, 2025
b9bd407
Format docstrings with the new format tools command (#7623)
zth Jul 12, 2025
4c5ad57
Fix master build (#7642)
cknitt Jul 13, 2025
4e70537
Fix issue with invalid code when emitting typeof with a function.
cristianoc Jul 14, 2025
e753b53
Add --dev flag to clean command (#7622)
nojaf Jul 15, 2025
307da9a
Only get dev_deps from local packages (#7646)
nojaf Jul 15, 2025
1f11c41
Refactor parse tree for function arguments.
cristianoc Jul 15, 2025
07c6fb7
Also adapt arrow in typedtree.
cristianoc Jul 15, 2025
f26d5c9
Adapt arrow type in Types.
cristianoc Jul 15, 2025
736159e
Use root package suffix in clean log messages (#7648)
nojaf Jul 15, 2025
f361edb
Rewatch: add support for "rescript -w" for compatibility (#7649)
cknitt Jul 15, 2025
fd68109
Refactor filter command line option handling (#7651)
cknitt Jul 15, 2025
dbcaa93
Add AGENTS.md (#7653)
cknitt Jul 15, 2025
0ae9d12
Fix inside comment printing for empty dict (#7654)
shulhi Jul 16, 2025
bf020e9
Refactor: construct every Ptyp_arrow via Ast_helper.Typ.arrow.
cristianoc Jul 15, 2025
2c96b79
Begin adding an arrow construction to Ast_helper that takes a list of…
cristianoc Jul 16, 2025
fdf00a7
Prevent trying to read non-existing file when extracting extra info f…
zth Jul 17, 2025
caf4154
Rust implementation of "rescript format" (#7603)
cknitt Jul 17, 2025
7883fe2
Rewatch: JSX 3 is unsupported (#7659)
cknitt Jul 17, 2025
66ce487
Fix fatal error when JSX not configured in rescript.json
cknitt Jul 17, 2025
2bb478c
CHANGELOG
cknitt Jul 17, 2025
5429398
AST: store the attributes directly on function arguments.
cristianoc Jul 17, 2025
aa61788
Clean up `Ast_core_type` using the `arg` type.
cristianoc Jul 17, 2025
cea6328
Add attributes field to arg type in typedtree
cristianoc Jul 17, 2025
b7ce5e2
Read bs-dev-dependencies if --dev was passed. (#7650)
nojaf Jul 18, 2025
a26186a
Prepare for 12.0.0-beta.2 release (#7666)
cknitt Jul 18, 2025
8ed879e
Set version to 12.0.0-beta.3 (#7667)
cknitt Jul 18, 2025
9f65d3d
Fix Windows CI (#7665)
cknitt Jul 19, 2025
326acd6
Revert utils.sh (#7669)
nojaf Jul 19, 2025
ac6a87d
Run Rewatch tests in release mode. (#7663)
nojaf Jul 19, 2025
5109bb0
Deprecate `bs-dependencies`, `bs-dev-dependencies` and `bsc-flags` (#…
Bushuo Jul 20, 2025
249cb40
Add optional `message` argument to `Result.getOrThrow` and improve de…
mediremi Jul 20, 2025
b64e2d8
Remove Example.res (#7685)
shulhi Jul 20, 2025
c092acd
ci: add clippy (#7675)
Bushuo Jul 20, 2025
1fa4d26
Remove legacy clean (#7657)
nojaf Jul 21, 2025
789591a
Fix sourcedirs.json generation (#7671)
nojaf Jul 21, 2025
dffc266
Fix comments attached to array element (#7672)
shulhi Jul 21, 2025
51a305e
Use `Typ.arrows` after the refactoring of arrow types.
cristianoc Jul 18, 2025
555cdbd
simplify
cristianoc Jul 18, 2025
a4c05cc
rename
cristianoc Jul 18, 2025
bf9b986
Refactor maker and accessor generation in AST derive
cristianoc Jul 18, 2025
a8c9fec
More Typ.arrows
cristianoc Jul 18, 2025
e6e981c
Use Typ.arrows in handle external.
cristianoc Jul 18, 2025
ada8eba
Refactor method callback and uncurry type handling
cristianoc Jul 20, 2025
22ad3f5
Update CHANGELOG.md
cristianoc Jul 21, 2025
76d783e
Rename rewatch to rescript (#7687)
nojaf Jul 22, 2025
b63b544
Don't ignore Stdlib_* files when generating docstring tests (#7694)
mediremi Jul 22, 2025
3606b7b
fix: rewatch not rebuilding on change (#7690)
Bushuo Jul 22, 2025
e7f8e3a
Fix regex literal loc (#7683)
zth Jul 22, 2025
61911cb
Adjust to bs-* deprecations (#7692)
zth Jul 22, 2025
76f9e00
Remove all leftovers of pinned-dependencies handling (#7686)
cknitt Jul 22, 2025
663bfd0
Rename all remaining bsconfig.json to rescript.json (#7697)
cknitt Jul 22, 2025
812d07e
Better error message if platform binaries package is not found (#7698)
cknitt Jul 22, 2025
2646aea
Add `RegExp.escape` binding (#7695)
mediremi Jul 22, 2025
86f026c
Adapt bsb to new rescript.json flags and remove usage of deprecated o…
cknitt Jul 23, 2025
cc27a5d
Add rust-version field to Rewatch's Cargo.toml (#7701)
mediremi Jul 23, 2025
0e5d216
Add asyncComponent to jsx (#7704)
nojaf Jul 24, 2025
327b986
Add support for async methods. (#7702)
cristianoc Jul 24, 2025
e8b4764
Clarify arity mismatch message (#7709)
zth Jul 24, 2025
7953354
Hint in error for string constants matching expected variant (#7711)
zth Jul 24, 2025
724232e
Remove dump command from rewatch cli (#7710)
cknitt Jul 24, 2025
fc69bf4
Improve error for a constructor expecting an inline record (#7713)
zth Jul 25, 2025
36824ed
Suggest different arity functions when it makes sense (#7712)
zth Jul 25, 2025
b3be9aa
Remove meth attribute (#7684)
shulhi Jul 25, 2025
3bd115b
Prepare for 12.0.0-beta.3 release (#7716)
cknitt Jul 25, 2025
f34ade1
Set version to 12.0.0-beta.4 (#7719)
cknitt Jul 25, 2025
c79b033
Suggest using JSX fragment where appropriate (#7714)
zth Jul 25, 2025
7c6f354
Do not show coercion suggestion when coercion isn't possible (#7721)
zth Jul 25, 2025
0fff45a
Show deprecation warnings for local deps only (#7724)
cknitt Jul 26, 2025
1fac9fa
Add node version check (#7723)
cknitt Jul 26, 2025
b50e72c
.gitignore: add Claude Code local settings (#7725)
cknitt Jul 26, 2025
39e90c7
Rewatch: remove support for .ml(i) and .re(i) (#7727)
cknitt Jul 28, 2025
118294a
Use more optional args in stdlib and deprecate some functions (#7730)
cknitt Jul 28, 2025
f04e3b3
improve error message for trying to do dot access on option/array (#7…
zth Jul 29, 2025
7917ea3
Fix formatter removed parens from functor type (#7735)
shulhi Jul 29, 2025
e4b6669
Move is_local_dep to Dependency struct (#7736)
nojaf Jul 30, 2025
c8d71af
Fix rewatch compilation of file starting with a lowercase letter (#7700)
tsnobip Jul 30, 2025
b70e6ad
remove dev log from rewatch (#7739)
tsnobip Jul 30, 2025
8057ded
Prevent infinite recursion in `TypeUtils.resolveTypeForPipeCompletio…
mediremi Jul 30, 2025
12debe4
Fix error message (#7734)
cknitt Jul 30, 2025
0184ec5
Prepare for 12.0.0-beta.4 release (#7743)
fhammerschmidt Jul 31, 2025
d36dd91
Set version to 12.0.0-beta.5 (#7744)
fhammerschmidt Jul 31, 2025
2aee2fd
Update CONTRIBUTING.md: KeyCDN -> Cloudflare R2 (#7745)
fhammerschmidt Jul 31, 2025
640bb93
Refactor printing inline type declarations (#7741)
zth Aug 1, 2025
93b103d
Don't format and don't check formatting of dependencies (#7748)
mediremi Aug 1, 2025
81f4b2f
Trim trailing commas from semantic tokens output to ensure valid JSON…
mediremi Aug 2, 2025
fb162b2
Update jsx configuration schema (#7755)
nojaf Aug 4, 2025
c738f75
Refactor jsx mode in parser (#7751)
nojaf Aug 6, 2025
ead028b
Try and read package name from rescript.json if package.json is not p…
nojaf Aug 8, 2025
e040107
Prepare for 12.0.0-beta.5 release (#7758)
fhammerschmidt Aug 8, 2025
697ccf8
Set version to 12.0.0-beta.6 (#7759)
fhammerschmidt Aug 8, 2025
6d4e83e
Add jsx_tag_name (#7760)
nojaf Aug 11, 2025
1e863ec
Add a few Stdlib helpers (#7516)
DZakh Aug 12, 2025
5372d67
Fix issue with ast conversion on functions with attributes on arguments.
cristianoc Aug 11, 2025
03b5e92
Adapt conversion from old parsetree
cristianoc Aug 11, 2025
8e4d66a
Update CHANGELOG.md
cristianoc Aug 11, 2025
2cd9996
Be more aware of the workspace during clean (#7752)
nojaf Aug 13, 2025
e92879e
Fix option optimisation compiler bug (#7766)
mediremi Aug 13, 2025
846b904
Try to read dependency from the current package. (#7770)
nojaf Aug 15, 2025
89a0890
Show both suffixes if multiple package specs with different extension…
nojaf Aug 15, 2025
4a4c689
Add missing details for packages in root rescript json (#7771)
nojaf Aug 15, 2025
37f233f
Prepare for 12.0.0-beta.6 release (#7772)
fhammerschmidt Aug 15, 2025
4276895
Set version to 12.0.0-beta.7 (#7773)
fhammerschmidt Aug 15, 2025
dfa1610
Show doc comments before type expansions in hover information (#7774)
mediremi Aug 18, 2025
271a112
Add markdown divider between module doc and module type in hover info…
mediremi Aug 18, 2025
9efa7e2
Preserve @as decorator on record fields when creating interface (#7779)
mediremi Aug 21, 2025
09903f9
Allow skipping leading pipe in definitions of variants with attribute…
zth Aug 22, 2025
db17fe1
Pass and extend current_type_path in missing place (#7781)
zth Aug 22, 2025
c6624e4
Support completions and better hovers for first class modules (#7780)
zth Aug 22, 2025
93db5f0
Reuse package resolution for ppx (#7776)
nojaf Aug 22, 2025
fc7226b
Better error when trying to use a keyword as a record field (#7784)
zth Aug 22, 2025
b60541e
Fix 'Unbound module type' errors that occurred when trying to async i…
mediremi Aug 22, 2025
d9bfbc8
Prepare for 12.0.0-beta.7 release (#7792)
fhammerschmidt Aug 22, 2025
cb59f21
Set version to 12.0.0-beta.8 (#7793)
fhammerschmidt Aug 23, 2025
1c9ebd7
Fix creating interface for functions with upper bounded polymorphic a…
mediremi Aug 23, 2025
d8fb2d4
Fix CHANGELOG
cknitt Aug 23, 2025
6ea8db7
Build runtime with rewatch on Windows, too
cknitt Jul 18, 2025
18ff979
Parser leading attr strictness (#7787)
zth Aug 23, 2025
fe531a2
Add support for ArrayBuffer and typed arrays to @unboxed (#7788)
mediremi Aug 23, 2025
7f094ec
Build with only one older OCaml version (#7797)
cknitt Aug 24, 2025
b1135d4
Add CHANGELOG entry for typed array support in unboxed types (#7800)
mediremi Aug 24, 2025
ce53ae4
Fix semantic highlighting for array spreads, array access and dict li…
mediremi Aug 24, 2025
3931a96
Dedicated error message for ternaries (#7804)
zth Aug 25, 2025
bfec8a2
`@rescript/runtime` package (#7796)
cknitt Aug 26, 2025
f8c108f
Error for braced single identifier to record (#7806)
zth Aug 26, 2025
54f118d
Hint about partial application in error where required labels are mis…
zth Aug 26, 2025
9047078
More improvements to completions involving modules (#7795)
zth Aug 27, 2025
42dfb71
Complete react.componentWithProps (#7812)
nojaf Aug 27, 2025
ce7f09c
PoC of let? (#7582)
zth Aug 27, 2025
644ccd8
Add some missing iframe attributes (#7813)
nojaf Aug 27, 2025
ea569cd
fix JS regex literal parsing in char classes (#7790)
zth Aug 28, 2025
183d982
Try to improve error message about inline record escaping scope (#7808)
zth Aug 28, 2025
94a7879
Remove @rescript/std (in favor of @rescript/runtime) (#7811)
cknitt Aug 28, 2025
3d570a2
Change placement of closing > in JSX (#7803)
nojaf Aug 29, 2025
c5b1a3d
Prepare for 12.0.0-beta.8 release (#7816)
cknitt Aug 29, 2025
6c0fd56
Fix: do not try publishing api docs if nothing has changed (#7817)
cknitt Aug 29, 2025
949139c
Include the contents of @rescript/runtime in the artifact list
cknitt Aug 26, 2025
85ef7d6
Fix contents of runtime package
cknitt Aug 30, 2025
7c66211
Set version to 12.0.0-beta.9 (#7821)
cknitt Aug 30, 2025
5e9db64
Set version to 12.0.0-beta.10 (#7822)
cknitt Aug 30, 2025
2a5356e
Do not include .ast/.iast files in lib-ocaml.zip artifact (#7823)
cknitt Aug 30, 2025
9ce1432
CI: windows-latest -> windows-2022 (#7824)
cknitt Aug 30, 2025
5eaab84
Add section on domProps (#7815)
nojaf Aug 31, 2025
22f68af
Fix generation of interfaces for module types containing multiple typ…
mediremi Aug 31, 2025
e0528c0
Show `Stdlib.Null` and `Stdlib.Nullable` completions for `Stdlib.null…
mediremi Aug 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
99 changes: 99 additions & 0 deletions .devcontainer/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
*~
_build
*.obj
*.out
*.compile
*.native
*.byte
*.cmo
*.annot
*.cmi
*.cmx
*.cmt
*.cmti
*.cma
*.a
*.cmxa
*.obj
*~
*.annot
*.mj
*.bak
*.swp
*.swo
*.flambda
*.jsx
*.lambda
*.rawlambda
*.s
*.o
*.lam
*.0.js
*#
*.log
.#*
*.cmj
*.rawlambda
*.lambda
*.zip
*.mlast
*.mliast

.idea
.DS_Store

node_modules
*.dump
coverage

.ninja_log
.bsdeps
.bsbuild
lib/ocaml
tests/build_tests/*/lib/
#ignore temporary directory
*.goog.js
*.jsoo.js
*.so
tmp/
tracing*.json

_opam

.env
playground/packages/
playground/stdlib/
playground/*.cmj
playground/*.cmi
playground/.netrc
playground/compiler.*js

rewatch/target/
rewatch/rewatch

tests/tools_tests/**/*.res.js
tests/tools_tests/lib
tests/analysis_tests*/lib
tests/analysis_tests/**/*.bs.js

/linux/*.exe
/linuxarm64/*.exe
/darwin/*.exe
/darwinarm64/*.exe
/win32/*.exe

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

*.tsbuildinfo

# package tarballs
package.tgz
*.exe

/ninja/ninja
/ninja/build.ninja
9 changes: 7 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
LABEL org.opencontainers.image.authors="Christoph Knittel <[email protected]>"
LABEL org.opencontainers.image.description="Docker image for ReScript development."

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
RUN sudo apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
opam \
cmake \
ninja-build \
musl-tools \
python-is-python3 \
&& rm -rf /var/lib/apt/lists/*

# Install OPAM
ARG OPAM_VERSION=2.4.1
RUN printf '\n\n' | bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --version $OPAM_VERSION"
10 changes: 8 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "ReScript Compiler",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
"dockerfile": "Dockerfile",
"args": {
"USER_UID": "${localEnv:UID}",
"USER_GID": "${localEnv:GID}"
}
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {
Expand All @@ -23,5 +27,7 @@
]
}
},
"postCreateCommand": ".devcontainer/postCreate.sh"
"postCreateCommand": ".devcontainer/postCreate.sh",
"remoteUser": "vscode",
"containerUser": "vscode"
}
12 changes: 6 additions & 6 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# Install dev dependencies from OPAM
opam init -y --bare --disable-sandboxing
opam switch create 5.2.0 --packages ocaml-option-static
opam install . --deps-only -y

# For IDE support, install the OCaml language server
opam install ocaml-lsp-server -y
opam switch create 5.3.0
opam install . --deps-only --with-test --with-dev-setup -y

# Add OPAM environment setup to shell startup script
echo 'eval $(opam env)' >> ~/.zshrc
echo 'eval $(opam env)' >> ~/.bashrc

npm install --ignore-scripts
nvm install

corepack enable
printf "\n" | yarn
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
* text=auto eol=lf

*.ml linguist-language=OCaml
*.mli linguist-language=OCaml
*.res linguist-language=ReScript
*.resi linguist-language=ReScript

.yarn/releases/* binary linguist-vendored
Loading