Skip to content

Commit 9eb29bd

Browse files
committed
Build runtime/stdlib files with rescript/bsb instead of ninja.js
1 parent ac30044 commit 9eb29bd

File tree

298 files changed

+276
-1563
lines changed

Some content is hidden

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

298 files changed

+276
-1563
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,15 +316,13 @@ jobs:
316316
run: opam exec -- make test-syntax
317317

318318
- name: Build runtime/stdlib
319-
if: runner.os != 'Windows'
320-
run: |
321-
opam exec -- node ./scripts/ninja.js config
322-
opam exec -- node ./scripts/ninja.js build
319+
run: ./scripts/buildRuntime.sh
320+
shell: bash
323321

324322
- name: Check for changes in lib folder
325323
run: git diff --exit-code lib/js lib/es6
326324

327-
- name: Populate lib/ocaml
325+
- name: Version Check
328326
run: ./scripts/prebuilt.js
329327

330328
- name: Run tests

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ reanalyze:
5151
reanalyze.exe -set-exit-code -all-cmt _build/default/jscomp -suppress jscomp/syntax/testrunner -exclude-paths jscomp/outcome_printer,jscomp/ounit_tests,jscomp/ml,jscomp/js_parser,jscomp/frontend,jscomp/ext,jscomp/depends,jscomp/core,jscomp/common,jscomp/cmij,jscomp/bsb_helper,jscomp/bsb
5252

5353
lib: build node_modules/.bin/semver
54-
node scripts/ninja.js config
55-
node scripts/ninja.js build
54+
./scripts/buildRuntime.sh
5655
./scripts/prebuilt.js
5756

5857
artifacts: lib
@@ -86,8 +85,8 @@ clean-rewatch:
8685
cargo clean --manifest-path rewatch/Cargo.toml && rm -f rewatch/rewatch
8786

8887
clean:
88+
(cd runtime && ../rescript clean)
8989
dune clean
90-
./scripts/ninja.js clean && rm -f ninja/ninja
9190

9291
clean-all: clean clean-gentype clean-rewatch
9392

jscomp/others/release.ninja

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

jscomp/runtime/Readme.md

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

jscomp/runtime/release.ninja

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

lib/es6/array.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22

33
import * as List from "./list.js";
4-
import * as Primitive_array from "./primitive_array.js";
5-
import * as Primitive_exceptions from "./primitive_exceptions.js";
4+
import * as Primitive_array from "rescript/lib/es6/primitive_array.js";
5+
import * as Primitive_exceptions from "rescript/lib/es6/primitive_exceptions.js";
66

77
let init = ((length, f) => Array.from({ length }, f));
88

lib/es6/belt_Array.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

3-
import * as Primitive_int from "./primitive_int.js";
4-
import * as Primitive_option from "./primitive_option.js";
3+
import * as Primitive_int from "rescript/lib/es6/primitive_int.js";
4+
import * as Primitive_option from "rescript/lib/es6/primitive_option.js";
55

66
function get(arr, i) {
77
if (i >= 0 && i < arr.length) {

lib/es6/belt_HashMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
import * as Primitive_option from "./primitive_option.js";
3+
import * as Primitive_option from "rescript/lib/es6/primitive_option.js";
44
import * as Belt_internalBuckets from "./belt_internalBuckets.js";
55
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
66

lib/es6/belt_HashMapInt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

3-
import * as Primitive_hash from "./primitive_hash.js";
4-
import * as Primitive_option from "./primitive_option.js";
3+
import * as Primitive_hash from "rescript/lib/es6/primitive_hash.js";
4+
import * as Primitive_option from "rescript/lib/es6/primitive_option.js";
55
import * as Belt_internalBuckets from "./belt_internalBuckets.js";
66
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
77

lib/es6/belt_HashMapString.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

3-
import * as Primitive_hash from "./primitive_hash.js";
4-
import * as Primitive_option from "./primitive_option.js";
3+
import * as Primitive_hash from "rescript/lib/es6/primitive_hash.js";
4+
import * as Primitive_option from "rescript/lib/es6/primitive_option.js";
55
import * as Belt_internalBuckets from "./belt_internalBuckets.js";
66
import * as Belt_internalBucketsType from "./belt_internalBucketsType.js";
77

0 commit comments

Comments
 (0)