-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port from jbuilder to dune, and upgrades opam metadata to the 2.0 format. This should now let `dune-release` work out of the box. Also moves to the non-deprecated Js_of_ocaml interfaces for non-wrapped modules.
- Loading branch information
Showing
16 changed files
with
73 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
.PHONY: all build clean test | ||
|
||
build: | ||
jbuilder build @install | ||
dune build @install | ||
|
||
all: build | ||
|
||
test: | ||
jbuilder runtest | ||
dune runtest | ||
|
||
install: | ||
jbuilder install | ||
dune install | ||
|
||
uninstall: | ||
jbuilder uninstall | ||
dune uninstall | ||
|
||
clean: | ||
rm -rf _build *.install | ||
dune clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
opam-version: "1.2" | ||
opam-version: "2.0" | ||
maintainer: "Spiros Eliopoulos <[email protected]>" | ||
authors: [ "Spiros Eliopoulos <[email protected]>" ] | ||
authors: "Spiros Eliopoulos <[email protected]>" | ||
license: "BSD-3-clause" | ||
homepage: "https://github.com/inhabitedtype/ocaml-dispatch" | ||
dev-repo: "https://github.com/inhabitedtype/ocaml-dispatch.git" | ||
bug-reports: "https://github.com/inhabitedtype/ocaml-dispatch/issues" | ||
build: [ | ||
[ "jbuilder" "subst" ] {pinned} | ||
[ "jbuilder" "build" "-p" name "-j" jobs ] | ||
] | ||
depends: [ | ||
"jbuilder" {build & >="1.0+beta10"} | ||
"dispatch" | ||
"js_of_ocaml-lwt" | ||
"ocaml" {>= "4.03.0"} | ||
"dune" {build & >= "1.0"} | ||
"dispatch" {>="0.4.0"} | ||
"js_of_ocaml-lwt" {>="3.3.0"} | ||
"result" | ||
] | ||
available: [ocaml-version >= "4.03.0"] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
] | ||
dev-repo: "git+https://github.com/inhabitedtype/ocaml-dispatch.git" | ||
synopsis: "Path-based dispatch: js_of_ocaml-specific support" | ||
description: """ | ||
ocaml-dispatch provides a basic mechanism for dispatching a request to a | ||
handler based on hierarchical path names conventionally found in URIs. It can be | ||
used both for dispatching requests in a server, as well as handing changes to | ||
hierarchical fragments in a client-side application. | ||
|
||
This library provides a JavaScript interface for dispatching | ||
events based on DOM events. | ||
""" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
opam-version: "1.2" | ||
opam-version: "2.0" | ||
maintainer: "Spiros Eliopoulos <[email protected]>" | ||
authors: [ "Spiros Eliopoulos <[email protected]>" ] | ||
authors: "Spiros Eliopoulos <[email protected]>" | ||
license: "BSD-3-clause" | ||
homepage: "https://github.com/inhabitedtype/ocaml-dispatch" | ||
dev-repo: "https://github.com/inhabitedtype/ocaml-dispatch.git" | ||
bug-reports: "https://github.com/inhabitedtype/ocaml-dispatch/issues" | ||
build: [ | ||
[ "jbuilder" "subst" ] {pinned} | ||
[ "jbuilder" "build" "-p" name "-j" jobs ] | ||
] | ||
build-test: [ [ "jbuilder" "runtest" "-p" name "-j" jobs ] ] | ||
doc: "https://inhabitedtype.github.io/ocaml-dispatch/" | ||
depends: [ | ||
"ounit" {test & >= "1.0.2"} | ||
"jbuilder" {build & >="1.0+beta10"} | ||
"ocaml" {>="4.03.0"} | ||
"ounit" {with-test & >= "1.0.2"} | ||
"dune" {build & >= "1.0"} | ||
"result" | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
dev-repo: "git+https://github.com/inhabitedtype/ocaml-dispatch.git" | ||
synopsis: "Path-based dispatching for client- and server-side applications" | ||
description: """ | ||
ocaml-dispatch provides a basic mechanism for dispatching a request to a | ||
handler based on hierarchical path names conventionally found in URIs. It can be | ||
used both for dispatching requests in a server, as well as handing changes to | ||
hierarchical fragments in a client-side application. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(lang dune 1.0) | ||
(name dispatch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
(name dispatch_js) | ||
(public_name dispatch-js) | ||
(preprocess (pps js_of_ocaml-ppx)) | ||
(libraries dispatch js_of_ocaml-lwt result)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
(name dispatch) | ||
(synopsis "Path-based dispatching for client- and server-side applications") | ||
(public_name dispatch) | ||
(libraries result)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(executables | ||
(names test_dispatch) | ||
(libraries dispatch oUnit)) | ||
|
||
(alias | ||
(name runtest) | ||
(deps test_dispatch.exe) | ||
(action (run %{deps} -verbose))) |
This file was deleted.
Oops, something went wrong.