rescript-lang / rescript

ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.
https://rescript-lang.org
Other
6.75k stars 449 forks source link

Exploring Better Monorepo and Faster Build Support for ReScript #6248

Open cristianoc opened 1 year ago

cristianoc commented 1 year ago

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:

Actions:

fhammerschmidt commented 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.

jfrolich commented 1 year ago

@fhammerschmidt I think this is supported by rewatch currently?

fhammerschmidt commented 1 year ago

Yes.

I did not think of rewatch when I made that comment, as it was not as far is it is today.

github-actions[bot] commented 2 months ago

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.