Skip to content

Commit 364122a

Browse files
authored
Merge pull request #53 from rgrinberg/dune
Port to dune 2.7
2 parents 09493f4 + 20aa69f commit 364122a

File tree

3 files changed

+59
-27
lines changed

3 files changed

+59
-27
lines changed

dune-project

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1-
(lang dune 1.4)
1+
(lang dune 2.7)
22
(name mustache)
33
(using menhir 2.0)
4+
5+
(license MIT)
6+
(implicit_transitive_deps false)
7+
8+
(maintainers "Rudi Grinberg <[email protected]>")
9+
(authors
10+
"Rudi Grinberg <[email protected]>"
11+
"Armaël Guéneau <[email protected]>"
12+
"Gabriel Scherer <[email protected]>")
13+
14+
(source (github rgrinberg/ocaml-mustache))
15+
16+
(generate_opam_files true)
17+
18+
(package
19+
(name mustache)
20+
(synopsis "Mustache logic-less templates in OCaml")
21+
(description "
22+
Read and write mustache templates, and render them by providing a json object.
23+
Contains the `mustache` command line utility for driving logic-less templates.
24+
")
25+
(depends
26+
ezjsonm
27+
(ounit :with-test)
28+
(menhir (>= 20180703))
29+
(ocaml (>= 4.06))))

lib_test/dune

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
(executables
1+
(tests
2+
(libraries mustache ounit2 ezjsonm)
23
(names test_mustache spec_mustache)
3-
(libraries mustache oUnit ezjsonm))
4-
5-
(alias
6-
(name runtest)
74
(deps test_mustache.exe ../specs/comments.json ../specs/interpolation.json
8-
../specs/partials.json ../specs/sections.json ../specs/inverted.json)
9-
(action (run ./test_mustache.exe)))
10-
11-
(alias
12-
(name runtest)
13-
(deps spec_mustache.exe)
14-
(action (run %{deps})))
5+
../specs/partials.json ../specs/sections.json ../specs/inverted.json))

mustache.opam

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,40 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
2-
maintainer: "[email protected]"
3-
authors: ["Rudi Grinberg" "Armaël Guéneau"]
3+
synopsis: "Mustache logic-less templates in OCaml"
4+
description: """
5+
6+
Read and write mustache templates, and render them by providing a json object.
7+
Contains the `mustache` command line utility for driving logic-less templates.
8+
"""
9+
maintainer: ["Rudi Grinberg <[email protected]>"]
10+
authors: [
11+
"Rudi Grinberg <[email protected]>"
12+
"Armaël Guéneau <[email protected]>"
13+
"Gabriel Scherer <[email protected]>"
14+
]
415
license: "MIT"
516
homepage: "https://github.com/rgrinberg/ocaml-mustache"
6-
doc: "http://rgrinberg.github.io/mustache/"
717
bug-reports: "https://github.com/rgrinberg/ocaml-mustache/issues"
818
depends: [
9-
"ocaml" {>= "4.08.0"}
10-
"dune" {>= "1.4.0"}
19+
"dune" {>= "2.7"}
1120
"ezjsonm"
12-
"menhir" {>= "20180703"}
1321
"ounit" {with-test}
22+
"menhir" {>= "20180703"}
23+
"ocaml" {>= "4.06"}
24+
"odoc" {with-doc}
1425
]
1526
build: [
16-
["dune" "subst"] {pinned}
17-
["dune" "build" "-p" name "-j" jobs]
18-
["dune" "runtest" "-p" name "-j" jobs] {with-test}
27+
["dune" "subst"] {dev}
28+
[
29+
"dune"
30+
"build"
31+
"-p"
32+
name
33+
"-j"
34+
jobs
35+
"@install"
36+
"@runtest" {with-test}
37+
"@doc" {with-doc}
38+
]
1939
]
2040
dev-repo: "git+https://github.com/rgrinberg/ocaml-mustache.git"
21-
synopsis: "Mustache logic-less templates in OCaml"
22-
description: """
23-
Read and write mustache templates, and render them by providing a json object.
24-
Contains the `mustache` command line utility for driving logic-less templates.
25-
"""

0 commit comments

Comments
 (0)