File tree 12 files changed +164
-138
lines changed
12 files changed +164
-138
lines changed Original file line number Diff line number Diff line change
1
+ root = true
2
+
3
+ [* ]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
build :
12
- strategy :
13
- fail-fast : false
14
- matrix :
15
- os :
16
- - macos-latest
17
- - ubuntu-latest
18
- - windows-latest
19
-
20
- runs-on : ${{ matrix.os }}
12
+ runs-on : ubuntu-latest
21
13
22
14
steps :
23
15
- name : Checkout code
@@ -34,10 +26,11 @@ jobs:
34
26
uses : ocaml/setup-ocaml@v2
35
27
with :
36
28
ocaml-compiler : " 4.14"
29
+ allow-prelease-opam : true
37
30
38
31
- run : yarn install --immutable
39
32
40
- - run : opam install . --deps-only --with-test
33
+ - run : opam install . --deps-only
41
34
42
35
- run : yarn exec -- opam exec -- make
43
36
Original file line number Diff line number Diff line change 1
- version=0.23.0
1
+ version=0.26.1
2
2
profile=conventional
3
3
break-infix=fit-or-vertical
4
4
parse-docstrings=true
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ all: clean bindings build
4
4
.PHONY : pretty-bytes
5
5
pretty-bytes :
6
6
ts2ocaml jsoo node_modules/pretty-bytes/index.d.ts \
7
- --preset=full \
8
7
--output-dir=lib \
8
+ --preset=full \
9
9
--simplify \
10
+ --number-as-int \
10
11
--verbose \
11
12
--nowarn
12
13
Original file line number Diff line number Diff line change 6
6
(modes js)
7
7
(js_of_ocaml
8
8
(flags
9
- (--target-env nodejs)
10
- (--enable use-js-string))
9
+ (--target-env nodejs))
11
10
(javascript_files ../lib/stub.js)))
Original file line number Diff line number Diff line change 1
- open Example
1
+ open Ts2ocaml_min
2
2
3
- let () = print_endline @@ Pretty_bytes. prettyBytes ~number: 128000000.0 ()
3
+ module PrettyBytes = struct
4
+ open Example
5
+ module Options = Pretty_bytes.Export. Options
6
+
7
+ let pretty_bytes = Pretty_bytes. prettyBytes
8
+ end
9
+
10
+ let options =
11
+ PrettyBytes.Options. create ~signed: false
12
+ ~locale: (Primitive. inject (`String " en" ))
13
+ ~bits: false ~binary: false ~minimum FractionDigits:1 ~maximum FractionDigits:2
14
+ ()
15
+
16
+ let () = print_endline @@ PrettyBytes. pretty_bytes ~number: 128000000 ~options ()
Original file line number Diff line number Diff line change 1
- (lang dune 3 .3 )
1
+ (lang dune 3 .11 )
2
2
3
3
(name example)
4
4
17
17
(name example)
18
18
(synopsis " Example use of ts2ocaml" )
19
19
( description " Example use of ts2ocaml" )
20
- ( depends ts2ocaml-jsoo-stdlib ojs gen_js_api js_of_ocaml-compiler) )
20
+ ( depends
21
+ ts2ocaml-jsoo-stdlib
22
+ ojs
23
+ gen_js_api
24
+ js_of_ocaml-compiler
25
+ ( ocamlformat
26
+ ( and
27
+ ( = 0 .26.1)
28
+ :with -dev-setup) )
29
+ ( ocaml-lsp-server :with -dev-setup) ) )
Original file line number Diff line number Diff line change @@ -8,11 +8,13 @@ license: "ISC"
8
8
homepage: "https://github.com/ocsigen/ts2ocaml"
9
9
bug-reports: "https://github.com/ocsigen/ts2ocaml/issues"
10
10
depends: [
11
- "dune" {>= "3.3 "}
11
+ "dune" {>= "3.11 "}
12
12
"ts2ocaml-jsoo-stdlib"
13
13
"ojs"
14
14
"gen_js_api"
15
15
"js_of_ocaml-compiler"
16
+ "ocamlformat" {= "0.26.1" & with-dev-setup}
17
+ "ocaml-lsp-server" {with-dev-setup}
16
18
"odoc" {with-doc}
17
19
]
18
20
build: [
@@ -31,5 +33,5 @@ build: [
31
33
]
32
34
dev-repo: "git+https://github.com/ocsigen/ts2ocaml.git"
33
35
pin-depends: [
34
- [ "ts2ocaml-jsoo-stdlib.dev" "git+https://github.com/ocsigen/ts2ocaml.git#jsoo-stdlib-v1.4.4 " ]
36
+ [ "ts2ocaml-jsoo-stdlib.dev" "git+https://github.com/ocsigen/ts2ocaml.git#jsoo-stdlib-v1.4.6 " ]
35
37
]
Original file line number Diff line number Diff line change 1
1
pin-depends: [
2
- [ "ts2ocaml-jsoo-stdlib.dev" "git+https://github.com/ocsigen/ts2ocaml.git#jsoo-stdlib-v1.4.4 " ]
2
+ [ "ts2ocaml-jsoo-stdlib.dev" "git+https://github.com/ocsigen/ts2ocaml.git#jsoo-stdlib-v1.4.6 " ]
3
3
]
Original file line number Diff line number Diff line change 1
1
(library
2
2
(name example)
3
3
(public_name example)
4
- (libraries ts2ocaml-jsoo-stdlib ojs ))
4
+ (libraries ts2ocaml-jsoo-stdlib))
5
5
6
6
(rule
7
7
(targets pretty_bytes.ml)
Original file line number Diff line number Diff line change 7
7
"pretty-bytes" : " 5.6.0"
8
8
},
9
9
"devDependencies" : {
10
- "@ocsigen/ts2ocaml" : " 1.4.4 " ,
11
- "esbuild" : " 0.17 .5"
10
+ "@ocsigen/ts2ocaml" : " 1.4.6 " ,
11
+ "esbuild" : " 0.19 .5"
12
12
},
13
13
"packageManager" : " yarn@4.0.1+sha256.5a9d054e67fbbae8774cd3667736fd74407ffbbb336898523ca1fe87b3fc4ee3"
14
14
}
You can’t perform that action at this time.
0 commit comments