diff --git a/bin/dune b/bin/dune index 673a664..59f7311 100644 --- a/bin/dune +++ b/bin/dune @@ -1,6 +1,7 @@ (executable (public_name react_trace) (name main) + (modes exe js) (preprocess (pps ppx_jane)) (libraries react_trace base logs logs.fmt fmt fmt.tty)) diff --git a/dune b/dune new file mode 100644 index 0000000..f406b83 --- /dev/null +++ b/dune @@ -0,0 +1,7 @@ +(env + (_ + (js_of_ocaml + (flags + (:standard --enable effects)) + (build_runtime_flags + (:standard --enable effects))))) diff --git a/dune-project b/dune-project index 501a7b7..b50717b 100644 --- a/dune-project +++ b/dune-project @@ -27,6 +27,7 @@ (ocaml-base-compiler (= 5.2.0)) core + js_of_ocaml-compiler flow_parser fmt logs diff --git a/react_trace.opam b/react_trace.opam index bfccabe..ad117f2 100644 --- a/react_trace.opam +++ b/react_trace.opam @@ -13,6 +13,7 @@ depends: [ "dune" {>= "3.15"} "ocaml-base-compiler" {= "5.2.0"} "core" + "js_of_ocaml-compiler" "flow_parser" "fmt" "logs"