-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from avsm/dune-port
Dune port + opam metadata 2 + mustache-unix package
- Loading branch information
Showing
20 changed files
with
113 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
_build/ | ||
TAGS | ||
*.install | ||
.merlin | ||
.merlin | ||
.*.swp |
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 |
---|---|---|
@@ -1,28 +1,15 @@ | ||
JBUILDER ?= jbuilder | ||
|
||
all: | ||
@$(JBUILDER) build @install @DEFAULT | ||
dune build | ||
|
||
test: | ||
@$(JBUILDER) runtest | ||
dune runtest | ||
|
||
check: test | ||
|
||
clean: | ||
@$(JBUILDER) clean | ||
|
||
.PHONY: check test all clean | ||
|
||
REPO=../opam-repository | ||
PACKAGES=$(REPO)/packages | ||
@dune clean | ||
|
||
pkg-%: | ||
topkg opam pkg -n $* | ||
mkdir -p $(PACKAGES)/$* | ||
cp -r _build/$*.* $(PACKAGES)/$*/ | ||
rm -f $(PACKAGES)/$*/$*.opam | ||
cd $(PACKAGES) && git add $* | ||
doc: | ||
dune build @doc | ||
|
||
PKGS=$(basename $(wildcard *.opam)) | ||
opam-pkg: | ||
$(MAKE) $(PKGS:%=pkg-%) | ||
.PHONY: check test all clean doc |
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,7 @@ | ||
(executable | ||
(name mustache_cli) | ||
(public_name mustache-cli) | ||
(modules mustache_cli) | ||
(package mustache-unix) | ||
(libraries mustache ezjsonm)) | ||
|
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,3 @@ | ||
(lang dune 1.0) | ||
(name mustache) | ||
(using menhir 2.0) |
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 @@ | ||
(executable | ||
(name mustache_example) | ||
(modules mustache_example) | ||
(libraries mustache ezjsonm)) | ||
|
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,11 @@ | ||
(ocamllex mustache_lexer) | ||
|
||
(menhir | ||
(modules mustache_parser)) | ||
|
||
(library | ||
(name mustache) | ||
(public_name mustache) | ||
(synopsis "Mustache.js templates in OCaml") | ||
(libraries menhirLib) | ||
(wrapped false)) |
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
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,14 @@ | ||
(executables | ||
(names test_mustache spec_mustache) | ||
(libraries mustache oUnit ezjsonm)) | ||
|
||
(alias | ||
(name runtest) | ||
(deps test_mustache.exe ../specs/comments.json ../specs/interpolation.json | ||
../specs/partials.json ../specs/sections.json ../specs/inverted.json) | ||
(action (run ./test_mustache.exe))) | ||
|
||
(alias | ||
(name runtest) | ||
(deps spec_mustache.exe) | ||
(action (run %{deps}))) |
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,3 +1,4 @@ | ||
[@@@warning "-6"] | ||
open OUnit2 | ||
open Mustache | ||
|
||
|
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,23 @@ | ||
opam-version: "2.0" | ||
maintainer: "rudi.grinberg@gmail.com" | ||
authors: ["Rudi Grinberg" "Armaël Guéneau"] | ||
license: "MIT" | ||
homepage: "https://github.com/rgrinberg/ocaml-mustache" | ||
doc: "http://rgrinberg.github.io/mustache/" | ||
bug-reports: "https://github.com/rgrinberg/ocaml-mustache/issues" | ||
depends: [ | ||
"ocaml" {>= "4.03"} | ||
"dune" {build} | ||
"base-unix" | ||
"mustache" | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
] | ||
dev-repo: "git+https://github.com/rgrinberg/ocaml-mustache.git" | ||
synopsis: "Unix utilitie for Mustache logic-less templates in OCaml" | ||
description: """ | ||
Contains the `mustache-cli` command line utility for driving | ||
Mustache logic-less templates. | ||
""" |
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,25 +1,24 @@ | ||
opam-version: "1.2" | ||
opam-version: "2.0" | ||
maintainer: "rudi.grinberg@gmail.com" | ||
authors: ["Rudi Grinberg" "Armaël Guéneau"] | ||
license: "MIT" | ||
|
||
homepage: "https://github.com/rgrinberg/ocaml-mustache" | ||
doc: "http://rgrinberg.github.io/mustache/" | ||
bug-reports: "https://github.com/rgrinberg/ocaml-mustache/issues" | ||
dev-repo: "https://github.com/rgrinberg/ocaml-mustache.git" | ||
doc: "http://mustache.github.io/mustache.5.html" | ||
|
||
build: [ | ||
["jbuilder" "subst" "-n" name] {pinned} | ||
["jbuilder" "build" "-p" name "-j" jobs] | ||
] | ||
|
||
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] | ||
|
||
depends: [ | ||
"jbuilder" {build} | ||
"ocaml" {>= "4.03"} | ||
"dune" {build} | ||
"menhir" | ||
"ounit" {test} | ||
"ezjsonm" {test} | ||
"ounit" {with-test} | ||
"ezjsonm" {with-test} | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
|
||
available: [ocaml-version >= "4.02.3"] | ||
dev-repo: "git+https://github.com/rgrinberg/ocaml-mustache.git" | ||
synopsis: "Mustache logic-less templates in OCaml" | ||
description: """ | ||
Read and write mustache templates, and render them by providing a json object. | ||
""" |