Skip to content

Commit

Permalink
rename lib_no_js in lib_no_jsoo
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Sep 24, 2024
1 parent 5015b83 commit ffefa43
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gui/lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
lwt_react
js_of_ocaml-tyxml
ppx_inline_test
kappa_webapp_lib_no_js
kappa_webapp_lib_no_jsoo
kappa_parameters
kappa_kasa_type_interface)
(flags :standard -w +a
Expand Down
6 changes: 3 additions & 3 deletions gui/lib/hooked.ml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module DebugPrint : Kappa_webapp_lib_no_js.Hooked.DebugPrint = struct
module DebugPrint : Kappa_webapp_lib_no_jsoo.Hooked.DebugPrint = struct
let debug_print s =
let () = Common.debug ~loc:__LOC__ s in
()
end

module S = Kappa_webapp_lib_no_js.Hooked.MakeS (DebugPrint)
module E = Kappa_webapp_lib_no_js.Hooked.MakeE (DebugPrint)
module S = Kappa_webapp_lib_no_jsoo.Hooked.MakeS (DebugPrint)
module E = Kappa_webapp_lib_no_jsoo.Hooked.MakeE (DebugPrint)

type 'a signal = 'a S.t
type 'a event = 'a E.t
6 changes: 3 additions & 3 deletions gui/lib/hooked.mli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module DebugPrint : Kappa_webapp_lib_no_js.Hooked.DebugPrint
module S : Kappa_webapp_lib_no_js.Hooked.S
module E : Kappa_webapp_lib_no_js.Hooked.E
module DebugPrint : Kappa_webapp_lib_no_jsoo.Hooked.DebugPrint
module S : Kappa_webapp_lib_no_jsoo.Hooked.S
module E : Kappa_webapp_lib_no_jsoo.Hooked.E

type 'a signal = 'a S.t
type 'a event = 'a E.t
3 changes: 3 additions & 0 deletions gui/lib_no_jsoo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Here are libs used by the webapp that don't use js_of_ocaml.

This allows to use ppx_inline_test on them.
2 changes: 1 addition & 1 deletion gui/lib_no_js/dune → gui/lib_no_jsoo/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(library
(name kappa_webapp_lib_no_js)
(name kappa_webapp_lib_no_jsoo)
(inline_tests)
(preprocess
(pps
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ffefa43

Please sign in to comment.