Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

Commit

Permalink
Remove refmterr from direct dependencies and add buildDev rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Et7f3 committed Apr 12, 2020
1 parent 2f6c18e commit ea7a60a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 54 deletions.
1 change: 0 additions & 1 deletion bin_js/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
bigarray
sdl2
sdl2example
console.lib
))

(install
Expand Down
13 changes: 3 additions & 10 deletions example.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@
"run": "esy '@example' x test_sdl2"
},
"override": {
"build": [
[
"dune",
"build",
"-p",
"sdl2,sdl2-example",
"-j4"
]
],
"build": "dune build -p sdl2,sdl2-example -j4",
"buildDev": "refmterr dune build --promote-install-files --root . --only-package sdl2,sdl2-example -j4",
"install": [
"esy-installer sdl2.install",
"esy-installer sdl2-example.install",
"bash -c \"#{os == 'windows' ? 'cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll \\'$cur__bin\\'': ':'}\"",
"bash -c \"cp #{esy-sdl2.bin}/*.dll \\'$cur__bin\\' #{os == 'windows' ? '' : '2>/dev/null || true'}\""
],
"dependencies": {
"@reason-native/console": "*"
"@reason-native/console": "^0.1.0"
}
}
}
42 changes: 15 additions & 27 deletions js.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,19 @@
"run": "esy '@js' x bash -c 'http-server #{self.bin}'"
},
"override": {
"build": [
[
"dune",
"build",
"--root",
"."
],
[
"dune",
"build",
"--root",
".",
"./bin_js/test_sdl2.bc.js"
]
],
"install": [
"esy-installer sdl2.install",
"esy-installer sdl2-example.install"
],
"dependencies": {
"@opam/js_of_ocaml": "*",
"@opam/js_of_ocaml-compiler": "*",
"@opam/js_of_ocaml-lwt": "*",
"http-server": "*",
"@opam/merlin-extend": "0.4"
}
}
"build": "dune build -p sdl2,sdl2-js",
"buildDev": "refmterr dune build --promote-install-files --root . --only-package sdl2,sdl2-js",
"install": [
"esy-installer sdl2.install", "esy-installer sdl2-js.install"
],
"dependencies": {
"@opam/js_of_ocaml": "*",
"@opam/js_of_ocaml-compiler": "*",
"@opam/js_of_ocaml-lwt": "*",
"http-server": "*",
"@opam/lwt_ppx": "^2.0.0",
"@opam/merlin-extend": "0.4"
}
},
"dependencies": { "@reason-native/console": "^0.1.0" }
}
22 changes: 6 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,18 @@
"build:byte": "esy '@example' b dune build bin_native/test_sdl2.bc"
},
"esy": {
"build": [
[
"dune",
"build",
"-p",
"sdl2"
]
],
"install": [
"esy-installer sdl2.install"
]
"build": "dune build -p sdl2",
"buildiDev": "refmterr dune build --root . --only-package sdl2"
},
"dependencies": {
"@opam/dune": "^1.7.3",
"@opam/dune-configurator": "*",
"@esy-ocaml/reason": "^3.3.7",
"refmterr": "^3.1.0",
"@opam/dune": ">=1.6 <2.1",
"@opam/dune-configurator": "*",
"esy-sdl2": "^2.0.10006",
"esy-cmake": "^0.3.4"
"ocaml": ">=4.6.0 <4.11.0"
},
"devDependencies": {
"ocaml": ">=4.6.0 <4.9.0",
"refmterr": "^3.1.0",
"@opam/ocaml-lsp-server": "github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#04733ed"
}
}

0 comments on commit ea7a60a

Please sign in to comment.