Skip to content

Commit

Permalink
Comment out opam2 conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
actionshrimp committed Apr 18, 2018
1 parent cbfb8f5 commit ee45d53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Livereload server in ocaml that can live in your webserver process. File watching uses `inotify` on linux and `osx-fsevents` on macos.

## Platform dependencies

You'll need to either `opam install inotify` or `opam install osx-fsevents` depending on your platform. There are some os specific constraints in `livereload.opam` but these unfortunately won't work until the opam2 is the official package format (if you know of a better way to handle this for now, please let me know :D).

## Setup

- Create a livereload handler for your server process by calling `Livereload.make_handler` along with config about which files to watch.
Expand Down
7 changes: 4 additions & 3 deletions livereload.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
opam-version: "2.0"
name: "livereload"
version: "0.1"
version: "~dev"
maintainer: "Dave Aitken <[email protected]>"
authors: "Dave Aitken <[email protected]>"
homepage: ""
Expand All @@ -14,7 +14,8 @@ depends: [
"websocket"
"websocket-lwt"
"ppx_blob"
"inotify" { os = "linux" }
"osx-fsevents" { os = "macos" }
# Requires opam2 to work
# "inotify" { os = "linux" }
# "osx-fsevents" { os = "macos" }
"opium" {test}
]

0 comments on commit ee45d53

Please sign in to comment.