diff --git a/README.md b/README.md index bdeb113..afa9e3b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_728 TILs and counting..._ +_729 TILs and counting..._ --- @@ -528,6 +528,7 @@ _728 TILs and counting..._ - [Dynamically Create A Printf String Format](reason/dynamically-create-a-printf-string-format.md) - [Exhaustive Pattern Matching Of List Variants](reason/exhaustive-pattern-matching-of-list-variants.md) - [Format The Current File Within Vim](reason/format-the-current-file-within-vim.md) +- [Generate A Native ReasonML Project With Pesy](reason/generate-a-native-reasonml-project-with-pesy.md) - [Generate Starter Reason Projects](reason/generate-starter-reason-projects.md) - [Helping The Compiler Help Us With Variants](reason/helping-the-compiler-help-us-with-variants.md) - [Inline Component Styles With Reason React](reason/inline-component-styles-with-reason-react.md) diff --git a/reason/generate-a-native-reasonml-project-with-pesy.md b/reason/generate-a-native-reasonml-project-with-pesy.md new file mode 100644 index 0000000..d9d8cf7 --- /dev/null +++ b/reason/generate-a-native-reasonml-project-with-pesy.md @@ -0,0 +1,17 @@ +# Generate A Native ReasonML Project With Pesy + +[Pesy](https://github.com/jordwalke/pesy) is a CLI utility available from +NPM that you can use to generate a ReasonML project that is ready for native +compilation. It uses [`esy`](https://github.com/esy/esy) for the management +of `opam` packages. It uses [Dune](https://github.com/ocaml/dune) for +building your library code with the ReasonML and OCaml dependencies. + +Assuming you already have `pesy` installed globally, create a directory for +your project and then run: + +```bash +$ pesy +``` + +A project will be generated that is out-of-the-box ready to compile native +executables.