Skip to content

Commit 8d12efa

Browse files
committed
Track b0
1 parent 6de482d commit 8d12efa

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

B0.ml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open B0_kit.V000
2-
open B00_std
32

43
(* OCaml library names *)
54

@@ -29,7 +28,7 @@ let test_exe ?(requires = []) src ~doc =
2928
let srcs = Fpath.[`File src] in
3029
let meta = B0_meta.(empty |> tag test) in
3130
let requires = react :: requires in
32-
B0_ocaml.exe (Fpath.basename ~no_ext:true src) ~srcs ~doc ~meta ~requires
31+
B0_ocaml.exe (Fpath.basename ~strip_ext:true src) ~srcs ~doc ~meta ~requires
3332

3433
let test = test_exe "test/test.ml" ~doc:"Test suite"
3534
let clock =
@@ -42,26 +41,26 @@ let breakout =
4241

4342
let default =
4443
let meta =
45-
let open B0_meta in
46-
empty
47-
|> tag B0_opam.tag
48-
|> add authors ["The react programmers"]
49-
|> add maintainers ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
50-
|> add homepage "https://erratique.ch/software/react"
51-
|> add online_doc "https://erratique.ch/software/react/doc/"
52-
|> add licenses ["ISC"]
53-
|> add repo "git+https://erratique.ch/repos/react.git"
54-
|> add issues "https://github.com/dbuenzli/react/issues"
55-
|> add description_tags
44+
B0_meta.empty
45+
|> B0_meta.(add authors) ["The react programmers"]
46+
|> B0_meta.(add maintainers)
47+
["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
48+
|> B0_meta.(add homepage) "https://erratique.ch/software/react"
49+
|> B0_meta.(add online_doc) "https://erratique.ch/software/react/doc/"
50+
|> B0_meta.(add licenses) ["ISC"]
51+
|> B0_meta.(add repo) "git+https://erratique.ch/repos/react.git"
52+
|> B0_meta.(add issues) "https://github.com/dbuenzli/react/issues"
53+
|> B0_meta.(add description_tags)
5654
["reactive"; "declarative"; "signal"; "event"; "frp"; "org:erratique"]
57-
|> add B0_opam.Meta.depends
55+
|> B0_meta.tag B0_opam.tag
56+
|> B0_meta.add B0_opam.depends
5857
[ "ocaml", {|>= "4.08.0"|};
5958
"ocamlfind", {|build|};
6059
"ocamlbuild", {|build|};
6160
"topkg", {|build & >= "1.0.3"|};
6261
]
63-
|> add B0_opam.Meta.build
62+
|> B0_meta.add B0_opam.build
6463
{|[["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"]]|}
6564
in
66-
B0_pack.v "default" ~doc:"react package" ~meta ~locked:true @@
65+
B0_pack.make "default" ~doc:"react package" ~meta ~locked:true @@
6766
B0_unit.list ()

0 commit comments

Comments
 (0)