-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to ReScript. #231
Migrate to ReScript. #231
Conversation
}, | ||
"lint-staged": { | ||
"*.{re,rei}": [ | ||
"bsrefmt --in-place" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, refmt no longer has support for in-place modification 😭 This means we can't do any sort of pre-commit or pre-merge checks and instead just need to ask people to use the VSCode extension or run refmt themselves :oof:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can likely just restore support by writing a small script 👍
@bs.send external toString: (int, int) => string = "toString" | ||
@scope("Math") @val external random: unit => float = "random" | ||
@scope("Math") @val external floor: float => int = "floor" | ||
@send external toString: (int, int) => string = "toString" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more bs
😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:rip: Can't say I'm sad to see it go!
Here we go! When merged, this PR will officially migrate us from Reason to ReScript. While it does make the library name out of date 😂 I feel this change is important for the future maintenance of this project. We'll consider a name change down the road, likely in a future major.
The migration here is automated. For the curious, you can check out my hacky Bash script to run this 😂 . There's nothing really meaningful to review here. We'll release this as a new minor version (3.1.0) alongside #230, assuming no regressions caught in CI.