@prometheansacrifice/foo v0.1.3
foo
A project which demonstrates a Reason workflow with Esy.
Usage
You need Esy, you can install the beta using npm:
% npm install -g esy@latestNOTE: Make sure
esy --versionreturns at least0.5.8for this project to build.
Then run the esy command from this project root to install and build depenencies.
% esyNow you can run your editor within the environment (which also includes merlin):
% esy $EDITOR
% esy vimAlternatively you can try vim-reasonml which loads esy project environments automatically.
After you make some changes to source code, you can re-run project's build
again with the same simple esy command.
% esyAnd test compiled executable (runs scripts.tests specified in
package.json):
% esy testDocumentation for the libraries in the project can be generated with:
% esy doc
% open-cli `esy echo '#{self.target_dir}/default/_doc/_html/index.html'`This assumes you have a command like open-cli installed on your system.
Shell into environment:
% esy shellCreate Prebuilt Release:
esy allows creating prebuilt binary packages for your current platform, with
no dependencies.
% esy npm-release
% cd _release
% npm publish