Introduction to Reason Compilation
[CG]Nick
13.4K views
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
4
print_endline MyDep.secret;
print_endline MyDep2.secret;
1
let secret = "hello";
1
let secret = MyDep.secret ^ " world";
1
cd step5
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.