Introduction to Reason Compilation

[Nick]
390 views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

5 - Preparation for Third-Party Dependencies

In preparation for the next step (third-party dependencies!), it'd be nice to have a unified folder for the built artifacts, so that we:

  • don't pollute third-party with intermediate compilation artifacts alongside their source code
  • can easily remove all artifacts by deleting a single folder

Additionally, we'll expand the naive compilation in run.sh into something slightly more sophisticated, and make the corresponding changes in .merlin.

"Run"
1
2
3
print_endline MyDep.secret;
print_endline MyDep2.secret;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content