Esy provides a single command called
The typical workflow is to
cd into a directory that contains a
file, and then perform operations on that project.
There are example projects:
- hello-reason, an example Reason project which uses dune build system.
- hello-ocaml, an example OCaml project which uses dune build system.
The typical workflow looks like this:
npm install -g esy
If you had installed esy previously:
npm uninstall --global --update esy
Clone the project:
git clone firstname.lastname@example.org:esy-ocaml/esy-ocaml-project.git cd esy-ocaml-project
Install project's dependencies source code and perform an initial build of the project's dependencies and of the project itself:
Test the compiled executables inside the project's environment:
Hack on project's source code and rebuild the project:
It is possible to invoke any command from within the project's sandbox. For example build & run tests with:
esy make test
You can run any command inside the project environment by just prefixing it with
To shell into the project's sandbox:
For more options: