From ee45d5339537e64be83cb7006bd362aec8f44d47 Mon Sep 17 00:00:00 2001 From: Dave Aitken Date: Wed, 18 Apr 2018 11:36:14 +0100 Subject: [PATCH] Comment out opam2 conditionals --- README.md | 4 ++++ livereload.opam | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 30b5b6f..ee62a95 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/livereload.opam b/livereload.opam index 2614493..c859248 100644 --- a/livereload.opam +++ b/livereload.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "livereload" -version: "0.1" +version: "~dev" maintainer: "Dave Aitken " authors: "Dave Aitken " homepage: "" @@ -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} ]