Skip to content
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

Merged
merged 3 commits into from
Dec 9, 2020
Merged

Migrate to ReScript. #231

merged 3 commits into from
Dec 9, 2020

Conversation

parkerziegler
Copy link
Contributor

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.

Comment on lines -70 to -79
},
"lint-staged": {
"*.{re,rei}": [
"bsrefmt --in-place"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
Copy link
Contributor Author

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:

Copy link

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"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No more bs 😆

Copy link
Contributor Author

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!

@parkerziegler parkerziegler merged commit a7ff0ba into main Dec 9, 2020
@parkerziegler parkerziegler deleted the feat/migrate-to-rescript branch December 9, 2020 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants