Skip to content

Commit 0fe68ca

Browse files
committed
Switched from bs-platform to rescript, and from jest to zora.
1 parent b7b4134 commit 0fe68ca

28 files changed

+1252
-3801
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.merlin
33
.bsb.lock
44
npm-debug.log
5-
/lib/bs/
5+
/lib/
66
/node_modules/
77
bsb
88
*.bs.js

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# reason-nodejs
1+
# rescript-nodejs
22

33
## Project Status
44

5+
The [original project](https://github.com/sikanhe/reason-nodejs) appears to be abandoned, I am in the process of forking it to focus on ReScript and
6+
57
**Update (5/5/2020):**
68
Announcing the beta release of `reason-node`! You can find it on NPM [here](https://www.npmjs.com/package/reason-nodejs), and install it from your terminal using the installation instructions below.
79

@@ -74,3 +76,9 @@ We welcome and encourage anyone to contribute! In order to minimize confusion an
7476
- If you want to request a feature/improvement, it's best to create an issue first, so we can discuss the details. The last thing we want is for you to spend a lot of valuable time and energy creating a pull request when it doesn't fit in with the project goals. That doesn't mean we won't merge your PR, but we cannot guarantee it. We prioritize code review and open discussion.
7577
- If you notice gaps in the documentation and want to help us fill in those gaps, you can help us out by submitting a PR, or by creating an issue and providing a draft of the docs you want to add.
7678
- If you have concerns about our implementations or design decisions (e.g. type soundness, complexity, ergonomics, edge cases, etc.), you should submit an issue voicing your concerns. We gladly welcome critique from the community. We want this library to be as useful as possible, so we want to hear from you!
79+
80+
## License and Credits
81+
82+
All code is licensed as MIT. See [LICENSE](LICENSE).
83+
84+
This project has been forked from [reason-nodejs](https://github.com/sikanhe/reason-nodejs) after it appeared to be abandoned. The project needed renaming anyway, this seemed like a good time to do it.

bsconfig.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/BuckleScript/bucklescript/master/docs/docson/build-schema.json",
32
"name": "reason-nodejs",
43
"sources": [
54
{
@@ -24,12 +23,12 @@
2423
}
2524
],
2625
"suffix": ".bs.js",
27-
"namespace": "node-js",
26+
"namespace": "NodeJs",
2827
"bs-dependencies": [],
2928
"bs-dev-dependencies": [
30-
"@glennsl/bs-jest"
29+
"@dusty-phillips/rescript-zora",
30+
"@ryyppy/rescript-promise"
3131
],
3232
"ppx-flags": [],
33-
"refmt": 3,
3433
"bsc-flags": []
3534
}

package.json

+18-12
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@
22
"name": "reason-nodejs",
33
"version": "13.0.0-beta.2",
44
"scripts": {
5-
"build": "bsb -make-world",
6-
"clean-build": "bsb -clean-world && bsb -make-world",
7-
"start": "bsb -make-world -w",
8-
"clean-start": "bsb -clean-world && bsb -make-world -w",
9-
"test": "jest",
10-
"clean-test": "bsb -clean-world && bsb -make-world && jest",
11-
"clean": "bsb -clean-world"
5+
"build": "rescript",
6+
"clean": "rescript clean",
7+
"start": "rescript build -w",
8+
"test": "pta 'lib/js/test/atomic/*.test.bs.js'",
9+
"clean-build": "run-s clean build",
10+
"clean-start": "run-s clean start",
11+
"clean-test": "run-s clean build test",
12+
"test-start": "onchange --await-write-finish 1000 --initial 'lib/js/{test,src}/**/*.bs.js' -- yarn test",
13+
"test-watchexec": "watchexec -r -d 0 -w lib/bs -e log -- yarn test"
1214
},
1315
"keywords": [
14-
"BuckleScript"
16+
"rescript",
17+
"nodejs"
1518
],
16-
"author": "Sikan He & Austin Davis",
17-
"homepage": "https://github.com/sikanhe/reason-node",
19+
"author": "Andrew Herron",
20+
"homepage": "https://github.com/thespyder/reason-node",
1821
"license": "MIT",
1922
"dependencies": {},
2023
"devDependencies": {
21-
"@glennsl/bs-jest": "^0.4.10",
22-
"bs-platform": "^8.3.0"
24+
"@dusty-phillips/rescript-zora": "^2.0.0",
25+
"npm-run-all": "^4.1.5",
26+
"onchange": "^7.1.0",
27+
"pta": "^1.0.0",
28+
"rescript": "^9.1.4"
2329
}
2430
}

src/BigInt.re

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
type t;
22

33
[@bs.val] external fromInt: int => t = "BigInt";
4+
[@bs.val] external fromFloat: float => t = "BigInt";
45
[@bs.val] external toInt: t => int = "Number";
56

67
let%private _NEGATIVE_ONE = fromInt(-1);

0 commit comments

Comments
 (0)