seems to kinda work, the userspace errors missing Html_types module

This commit is contained in:
cqc
2024-03-24 22:50:57 -05:00
parent f46dc86c6a
commit 3c32f068fb
7 changed files with 46 additions and 40 deletions

43
dune
View File

@ -4,8 +4,7 @@
(executables
(names cors_proxy)
(libraries httpaf httpaf-lwt-unix base stdio fmt http-lwt-client)
(modules cors_proxy)
)
(modules cors_proxy))
(library (name store)
(libraries
@ -17,7 +16,7 @@
cohttp-lwt-jsoo
mimic
js_of_ocaml)
(modules store)
(modules store gitkey)
(preprocess
(pps js_of_ocaml-ppx)))
@ -29,6 +28,8 @@
lwt js_of_ocaml-lwt
;; not used directly
graphics
tyxml
tyxml.functor
js_of_ocaml.deriving
react reactiveData
str dynlink
@ -36,31 +37,38 @@
higlo
js_of_ocaml-lwt.graphics
js_of_ocaml-ppx
js_of_ocaml-compiler.runtime
js_of_ocaml-compiler.dynlink
uucp
httpaf)
httpaf
tyxml-ppx
tyxml-syntax)
(flags
(:standard -rectypes -warn-error -A))
(link_flags
(:standard -linkall))
(modes byte js)
(:standard -linkall -keep-docs -keep-locs ))
(modes js byte )
(js_of_ocaml
(link_flags (:standard))
(build_runtime_flags
(:standard
;; +oplevel.js
+toplevel.js
+dynlink.js
--file
%{dep:examples.ml}
--file
%{dep:test_dynlink.cmo}
--file
%{dep:test_dynlink.js}))
%{dep:test_dynlink.js}
))
(flags
(:standard
--toplevel
(:include effects_flags.sexp))))
--toplevel --linkall --target-env=browser
(:include effects_flags.sexp)
)))
(modules
oplevel toplevel ppx_support graphics_support colorize ocp_indent indent b64)
oplevel toplevel ppx_support graphics_support colorize ocp_indent indent b64 )
(preprocess
(pps js_of_ocaml-ppx)))
@ -89,9 +97,11 @@
-o
%{targets}
stdlib
graphics
str
dynlink
js_of_ocaml.graphics
js_of_ocaml-compiler.runtime
js_of_ocaml-lwt.graphics
js_of_ocaml-ppx.as-lib
js_of_ocaml.deriving
lwt
@ -139,15 +149,12 @@
%{dep:test_dynlink.cmo}
--file
%{dep:test_dynlink.js}
--export
%{dep:export.txt}
--toplevel
--disable
shortvar
--toplevel
--linkall
%{dep:oplevel.bc}
-o
%{targets})))
(alias
(name default)
(deps oplevel.js oplevel.bc.js index.html))
(deps oplevel.bc.js index.html))