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