an example esy-powered OCaml project
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Port to dune Jul 24, 2018
lib Port to dune Jul 24, 2018
.gitignore esy@0.2.1 updates Jul 28, 2018
.travis.yml travis updates Jul 28, 2018
README.md Windows: Add AppVeyor build (#15) Aug 30, 2018
appveyor.yml Upgrade to esy@0.2.11 and upgrade lockfile (#17) Sep 18, 2018
dune-project Port to dune Jul 24, 2018
esy.lock.json Upgrade to esy@0.2.11 and upgrade lockfile (#17) Sep 18, 2018
hello-ocaml.opam rename Jul 23, 2018
package.json Windows: Add AppVeyor build (#15) Aug 30, 2018

README.md

hello-ocaml

Build status Build Status

A project which demonstrates an OCaml workflow with Esy.

Usage

You need Esy, you can install the beta using npm:

% npm install -g esy

Then you can install the project dependencies using:

% esy install

Then build the project dependencies along with the project itself:

% esy build

Now you can run your editor within the environment (which also includes merlin):

% esy $EDITOR
% esy vim

After you make some changes to source code, you can re-run project's build using:

% esy build

And test compiled executable:

% esy ./_build/default/bin/hello.exe

Shell into environment:

% esy shell