Module B0_jsoo

js_of_ocaml B0 file support

Build units

Units

val exe : ?⁠doc:string -> ?⁠meta:B0_meta.t -> ?⁠requires:B00_ocaml.Lib.Name.t list -> ?⁠name:string -> string -> srcs:B0_srcs.t -> B0_unit.t

exe n is a JavaScript "executable" file named n (without the .js extension.

  • doc is the unit doc string.
  • meta is the initial metadata.
  • requires are the OCaml libraries required to compile the JavaScript.
  • name is the name of the unit (defaults to n).
  • srcs are the executable sources. All files with extension .ml, .mli and .js are considered for compiling and linked in the JavaScript file.
val web : ?⁠doc:string -> ?⁠meta:B0_meta.t -> ?⁠requires:B00_ocaml.Lib.Name.t list -> ?⁠name:string -> string -> srcs:B0_srcs.t -> B0_unit.t

web n is an HTML page named n (without the .html extension).

  • doc is the unit doc string.
  • meta is the initial metadata.
  • requires are the OCaml libraries required to compile the JavaScript.
  • name is the name of the unit (defaults to n).
  • srcs are the executable sources. All files with extension .ml, .mli and .js are considered for compiling and linking the executable.

FIXME add the css/html/js crap like brzo does.

val tag : unit B0_meta.key

tag indicates the entity is relatd to js_of_ocaml.

module Meta : sig ... end