Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4a748bb

Browse files
cknittzth
andauthoredNov 12, 2024··
Move rescript-editor-analysis and rescript-tools into compiler repo (#7000)
* Dune: explicitly set package to "rescript" before adding more packages * Add package "analysis" from rescript-vscode repo * Analysis: remove vendored libs that are already in the compiler repo * Add Tast_iterator module from rescript-vscode repo * Remove class stuff from Tast_iterator * Format Tast_iterator * Fix DeadValue.ml * No more Config.uncurried * Analysis: use default print width instead of taking it from syntax cli * Make pexp_attributes mutable * Add package "tools" from rescript-vscode repo * Format OCaml code * Mark Res_multi_printer.default_print_width as live * Format * Do not check in tools/analysis test artifacts * Add rescript-editor-analysis and rescript-tools to rescript npm package * Fix path for analysis/tools binaries in test scripts * Run analysis tests in CI * analysis: get rid of PervasivesU * Nullable is now @unboxed * More pervasives * Analysis tests: use rescript from this repo and adapt * Output changes that are ok * Tools tests: use rescript from this repo * commit OK changes to analysis output * commit more OK changes to test output * get CodeLens to a good enough state * fix jsx prop completion broken by first class regexp literal support * use predef paths so weird type lookups do not happen * commit OK change * commit OK output * Fix gitignore * commit OK output (JSON type changes) * Do not run analysis tests on Windows * Add opam exec * print module name instead of full file name in debug statement * dont use deprecated functions * update generic jsx transform test * update incremental typechecking test * Fix uppercase exotic idents * Don't run analysis tests on Linux ARM * Move tools and analysis tests to tests folder * CHANGELOG * Add rescript-tools cli wrapper script * Remove obsolete Makefile * Ship RescriptTools module with the rescript npm package --------- Co-authored-by: Gabriel Nordeborn <[email protected]>
1 parent 682c8a0 commit 4a748bb

File tree

729 files changed

+120476
-12
lines changed

Some content is hidden

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

729 files changed

+120476
-12
lines changed
 

‎.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ jobs:
320320
- name: Check for diffs in tests folder
321321
run: git diff --ignore-cr-at-eol --exit-code tests
322322

323+
- name: Run analysis / tools tests
324+
if: runner.os != 'Windows' && matrix.os != 'buildjet-2vcpu-ubuntu-2204-arm'
325+
run: opam exec -- make -C tests/analysis_tests test && make -C tests/tools_tests test
326+
323327
- name: Run gentype tests
324328
if: runner.os != 'Windows'
325329
run: make -C tests/gentype_tests/typescript-react-example clean test

‎.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ playground/compiler.js
7676

7777
rewatch/target/
7878
rewatch/rewatch
79+
80+
tests/tools_tests/**/*.res.js
81+
tests/tools_tests/lib
82+
tests/analysis_tests*/lib
83+
tests/analysis_tests/**/*.bs.js

0 commit comments

Comments
 (0)
Please sign in to comment.