diff --git a/.ocamlformat b/.ocamlformat index 291f8a0..04d5660 100644 --- a/.ocamlformat +++ b/.ocamlformat @@ -1,4 +1,2 @@ version=0.27.0 -profile=conventional -break-infix=fit-or-vertical -parse-docstrings=true +profile=janestreet diff --git a/bin/main.ml b/bin/main.ml index 3c58be2..38e5401 100644 --- a/bin/main.ml +++ b/bin/main.ml @@ -8,9 +8,14 @@ module PrettyBytes = struct end let options = - PrettyBytes.Options.create ~signed:false + PrettyBytes.Options.create + ~signed:false ~locale:(Primitive.inject (`String "en")) - ~bits:false ~binary:false ~minimumFractionDigits:1 ~maximumFractionDigits:2 + ~bits:false + ~binary:false + ~minimumFractionDigits:1 + ~maximumFractionDigits:2 () +;; let () = print_endline @@ PrettyBytes.pretty_bytes ~number:128000000 ~options () diff --git a/dune-project b/dune-project index 7d9a4fa..a2f2c43 100644 --- a/dune-project +++ b/dune-project @@ -1,18 +1,13 @@ (lang dune 3.17) - (name example) -(license ISC) - -(authors "The ocsigen team") - -(maintainers "dev@ocsigen.org") - -(source - (github ocsigen/ts2ocaml-example)) - (generate_opam_files true) +(license ISC) +(maintainers "The ocsigen team ") +(authors "The ocsigen team ") +(source (github ocsigen/ts2ocaml-example)) + (package (name example) (synopsis "Example use of ts2ocaml") @@ -23,7 +18,8 @@ gen_js_api js_of_ocaml-compiler (ocaml-lsp-server :with-dev-setup) - (ocamlformat - (and - :with-dev-setup - (= 0.27.0))))) + (ocamlformat (and :with-dev-setup (= 0.27.0))))) + +(pin + (package (name ts2ocaml-jsoo-stdlib)) + (url "git+https://github.com/ocsigen/ts2ocaml.git#jsoo-stdlib-v2.0.0-beta.3")) diff --git a/example.opam b/example.opam index 3994614..ac50fdf 100644 --- a/example.opam +++ b/example.opam @@ -2,8 +2,8 @@ opam-version: "2.0" synopsis: "Example use of ts2ocaml" description: "Example use of ts2ocaml" -maintainer: ["dev@ocsigen.org"] -authors: ["The ocsigen team"] +maintainer: ["The ocsigen team "] +authors: ["The ocsigen team "] license: "ISC" homepage: "https://github.com/ocsigen/ts2ocaml-example" bug-reports: "https://github.com/ocsigen/ts2ocaml-example/issues"