Minimal setup for running Reason code.
Globally install esy
so that the esy
command is available in the terminal.
npm install -g esy
This may be useful: Global npm without sudo
git clone https://github.com/kyldvs/hello-reason-minimal
cd hello-reason-minimal
esy
This is a combination of esy install
and esy build
esy x hello
This will automatically rebuild if there are changes
- Install the OCaml Platform extension.
- Create
.vscode/settings.json
in this repo:
{
"ocaml.sandbox": {
"kind": "esy",
"root": "/path/to/hello-reason-minimal"
}
}
- Restart VSCode
- For VIM support use:
vim-reasonml
- (Or see the next section for general terminal editor use)
- Run your editor within the Reason environment using
esy
:
esy $EDITOR
esy vim
- For more details and additional setup see:
details.md
- Adding dependencies
- Recursive dub-directories
- Ignoring warnings
- Printing stack traces
When you understand how this repo works, a more complete setup, including CI/CD, can
be found at esy-ocaml/hello-reason
.