forked from reasonml/reason
-
Notifications
You must be signed in to change notification settings - Fork 1
/
esy.json
77 lines (75 loc) · 2.28 KB
/
esy.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "reason-cli",
"notes": "This is just the dev package config (also built as globally installable reason-cli). See ./refmt.json ./rtop.json for individual release package configs.",
"license": "MIT",
"version": "3.6.0",
"dependencies": {
"ocaml": " >= 4.2.0 < 4.11.0",
"@opam/fix": "*",
"@opam/ocamlfind": "*",
"@opam/menhir": " >= 20170418.0.0",
"@opam/utop": " >= 1.17.0 < 2.5.0",
"@opam/merlin-extend": " >= 0.4",
"@opam/result": "*",
"@opam/ocaml-migrate-parsetree": "*",
"@opam/dune": "< 2.0.0"
},
"devDependencies": {
"@opam/merlin": "*",
"@opam/odoc": "*",
"ocaml": "~4.6.0"
},
"notes-ctd": [
"This is how you make an esy monorepo for development, but then release the monorepo as many individual packages:",
"1. Create a packageName-dev esy.json at the root and list the sum of all dependencies",
"2. Set the esy.build command to build a comma delimited list of the package names",
"3. Set the esy.install command to install each of those packages",
"4. Create separate esy.json files for each of those packages (see ./scripts/esy/)",
"5. Copy ./scripts/esy-prepublish.js in to your repo and change packages= to your set of packages."
],
"esy": {
"build": [["dune", "build", "-p", "reason,rtop"]],
"install": [
["esy-installer", "reason.install"],
["esy-installer", "rtop.install"]
],
"release": {
"bin": {
"rtop": "rtop",
"refmt": "refmt"
},
"includePackages": [
"root",
"@opam/base-bytes",
"@opam/base-threads",
"@opam/base-unix",
"@opam/camomile",
"@opam/lambda-term",
"@opam/lwt",
"@opam/lwt_log",
"@opam/lwt_react",
"@opam/menhir",
"@opam/mmap",
"@opam/ocplib-endian",
"@opam/ocaml-migrate-parsetree",
"@opam/ocamlfind",
"@opam/ppx_derivers",
"@opam/react",
"@opam/result",
"@opam/seq",
"@opam/utop",
"@opam/zed",
"ocaml"
],
"rewritePrefix": true
}
},
"scripts": {
"//": "sanity test. Expected by ci.",
"test": "esy x refmt --version",
"//": "Actual test.",
"tests": "esy x make test",
"//": "Required by CI",
"doc": "esy dune build @doc"
}
}