-
Notifications
You must be signed in to change notification settings - Fork 468
Exploring Better Monorepo and Faster Build Support for ReScript #6248
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
Comments
Referencing #3521 here, so that we don't forget about symlink support on the way. |
@fhammerschmidt I think this is supported by rewatch currently? |
Yes. I did not think of rewatch when I made that comment, as it was not as far is it is today. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Adopting rewatch as the new build system. |
Title: Exploring Better Monorepo and Faster Build Support for ReScript
Description:
There has been a discussion about improving monorepo support and faster build times for ReScript projects. A Rust-based tool called
rewatch
has been developed by @rolandpeelen and @jaap to address these issues in their own monorepo setup. It bypasses ninja and calls bsc directly, which provides a 2x to 3x improvement in build times and reduces stale builds. Some participants in the discussion considered the benefits and challenges of writing the tool in OCaml instead of Rust, while others discussed the possibility of cross-compilation and improving CI support for various platforms. The goal is to improve monorepo support and build times for a wider range of ReScript projects.Key points from the discussion:
rewatch
is not a ninja generator, but does clever stuff to avoid rebuilding things that have already been built.rewatch
due to its advantages in file watching, efficient OS system calls, and cross-platform support. However, certain aspects of the implementation might still require binding to C-libraries if done in OCaml.Actions:
rewatch
has improved the build process for it.The text was updated successfully, but these errors were encountered: