+1
bin/html5check/dune
+1
bin/html5check/dune
+15
dune-project
+15
dune-project
···
30
30
(odoc :with-doc)
31
31
(jsont (>= 0.2.0))
32
32
(cmdliner (>= 1.3.0))))
33
+
34
+
(package
35
+
(name html5rw-js)
36
+
(synopsis "Browser-based HTML5 parser via js_of_ocaml/wasm_of_ocaml")
37
+
(description
38
+
"JavaScript and WebAssembly builds of the html5rw HTML5 parser for browser use. \
39
+
Includes a main validator library, web worker for background validation, and \
40
+
browser-based test runner.")
41
+
(depends
42
+
(ocaml (>= 5.1.0))
43
+
(html5rw (= :version))
44
+
(js_of_ocaml (>= 5.0))
45
+
(js_of_ocaml-ppx (>= 5.0))
46
+
(wasm_of_ocaml-compiler (>= 5.0))
47
+
(brr (>= 0.0.6))))
+35
html5rw-js.opam
+35
html5rw-js.opam
···
1
+
# This file is generated by dune, edit dune-project instead
2
+
opam-version: "2.0"
3
+
synopsis: "Browser-based HTML5 parser via js_of_ocaml/wasm_of_ocaml"
4
+
description:
5
+
"JavaScript and WebAssembly builds of the html5rw HTML5 parser for browser use. Includes a main validator library, web worker for background validation, and browser-based test runner."
6
+
maintainer: ["Anil Madhavapeddy <anil@recoil.org>"]
7
+
authors: ["Anil Madhavapeddy <anil@recoil.org>"]
8
+
license: "MIT"
9
+
homepage: "https://tangled.org/@anil.recoil.org/ocaml-html5rw"
10
+
bug-reports: "https://tangled.org/@anil.recoil.org/ocaml-html5rw/issues"
11
+
depends: [
12
+
"dune" {>= "3.20"}
13
+
"ocaml" {>= "5.1.0"}
14
+
"html5rw" {= version}
15
+
"js_of_ocaml" {>= "5.0"}
16
+
"js_of_ocaml-ppx" {>= "5.0"}
17
+
"wasm_of_ocaml-compiler" {>= "5.0"}
18
+
"brr" {>= "0.0.6"}
19
+
"odoc" {with-doc}
20
+
]
21
+
build: [
22
+
["dune" "subst"] {dev}
23
+
[
24
+
"dune"
25
+
"build"
26
+
"-p"
27
+
name
28
+
"-j"
29
+
jobs
30
+
"@install"
31
+
"@runtest" {with-test}
32
+
"@doc" {with-doc}
33
+
]
34
+
]
35
+
x-maintenance-intent: ["(latest)"]
+18
lib/js/dune
+18
lib/js/dune
···
79
79
(targets htmlrw-tests.wasm.js)
80
80
(deps htmlrw_js_tests_main.bc.wasm.js)
81
81
(action (copy %{deps} %{targets})))
82
+
83
+
; Install web assets to share/html5rw-js/ for npm packaging
84
+
(install
85
+
(package html5rw-js)
86
+
(section share)
87
+
(files
88
+
; JavaScript bundles
89
+
htmlrw.js
90
+
htmlrw-worker.js
91
+
htmlrw-tests.js
92
+
; WASM loader scripts
93
+
htmlrw.wasm.js
94
+
htmlrw-worker.wasm.js
95
+
htmlrw-tests.wasm.js
96
+
; WASM assets (with content-hashed filenames)
97
+
(glob_files_rec (htmlrw_js_main.bc.wasm.assets/* with_prefix htmlrw_js_main.bc.wasm.assets))
98
+
(glob_files_rec (htmlrw_js_worker.bc.wasm.assets/* with_prefix htmlrw_js_worker.bc.wasm.assets))
99
+
(glob_files_rec (htmlrw_js_tests_main.bc.wasm.assets/* with_prefix htmlrw_js_tests_main.bc.wasm.assets))))