@enspirit/rescript-chokidar

ReScript bindings for Chokidar.js

Usage no npm install needed!

<script type="module">
  import enspiritRescriptChokidar from 'https://cdn.skypack.dev/@enspirit/rescript-chokidar';
</script>

README

rescript-chokidar

ReScript bindings for chokidar.

Usage

let watcher = Chokidar.watch(".", ());
let doit = (s:string) => Js.log(s);
Chokidar.on(watcher, "change", doit);
Chokidar.close(watcher, ());

Developers section

First and formost, configure your environment with npm install.

Specific ReScript aliases (clean, build, watch, test...) are defined in the package.json file to be used with npm run [alias].