Open cristianoc opened 1 year ago
Referencing https://github.com/rescript-lang/rescript-compiler/issues/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.
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.