-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
34 lines (34 loc) · 1.09 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"name": "jsoo-node",
"version": "1.0.0",
"description": "Bindings for NodeJS",
"directories": { "example": "example", "lib": "lib" },
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"format": "ocamlformat lib/*.mli --inplace",
"format:check": "ocamlformat lib/*.mli --check",
"compile": "esy x dune build .",
"example": "esy x dune build . && rm -f example/example.bc.js && cp _build/default/bin/example.bc.js example/ && node example/example.bc.js",
"doc": "esy x dune build @doc && cp -Rf _build/default/_doc/_html/ doc/"
},
"author": "CareClever",
"license": "Apache-2.0",
"dependencies": {
"@opam/dune": ">=2.7",
"@opam/gen_js_api": "*",
"@opam/js_of_ocaml": "*",
"@opam/js_of_ocaml-compiler": "*",
"@opam/js_of_ocaml-ppx": "*",
"@opam/ocaml-lsp-server": "1.2.0",
"@opam/ocamlformat": "0.15.0",
"@opam/odoc": "1.5.2",
"husky": "^5.0.6",
"ocaml": "~4.09"
},
"esy": { "build": [ "dune build ./bin/example.bc.js" ] },
"husky" : {
"hooks" : {
"pre-commit":"npm run format && git add ."
}
}
}