Reason Native Quickstart
Esy (pronounced "easy") is a package manager for native Reason applications. It allows you to consume opam packages, and publish your own native packages to npm.
npm install -g esy
Note: Make sure you have the latest
esyinstalled. If in doubt, run
npm remove -g esy && npm install -g esy@latest.
Clone any esy project and run the
esy command inside of it. This will install all dependencies and build everything.
git clone firstname.lastname@example.org:esy-ocaml/hello-reason.git cd hello-reason esy
To add native Reason packages that happen to be hosted on npm, run
esy add npm-package-name.
esy add refmterr
esy treats the npm scope
esy will install any package name with the
@opam scope directly from opam. This is the only scope with special meaning. All other package names are assumed to be hosted on npm.
esy add @opam/bos
Advanced esy configuration:
See the configuration section from the complete
See the native project section of the Reason editor support doc.
In addition to supporting
esy specific packages hosted on npm,