package dune_watch
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=55933347c60d8e0b3439b2ab5a57d614c1b241772f443e531ad12796c0b7c8f7
md5=0f7237b68588c98566f6591d3ea4c42e
Description
Published: 29 Jun 2018
README
Dune_watch
A tool to relaunch jbuilder build
when a file modification is detected via fswatch
or inotifywait
.
Requirements
Of course, we need jbuilder
(or dune
). In addition, the following file system monitor command is required:
Mac OS X:
fswatch
Linux:
inotifywait
In Linux, there is a limit of number of file monitorings per user, and inotifywait
command fails if there are too many files under the directory of dune_watch
is running. The issue may be solved by increasing the limit may solve the issue: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers
Limitation
Currently it only tested with Mac OS X with fswatch
and Linux with inotifywait
.
How to use
At the top of your project,
$ dune_watch
then it executes jbuilder build --dev
build command. Once the command finishes, dune_watch
monitors file modification under the directory where it is launched and relaunches the build command when necessary.
Dependencies (6)
-
camlon
>= "2.0.0"
-
ppx_meta_conv
>= "4.0.0"
-
ppx_monadic
>= "2.3.0"
- lwt
-
jbuilder
>= "1.0+beta7"
-
ocaml
>= "4.04.0"
Dev Dependencies
None
Used by
None
Conflicts
None