This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
66 lines (56 loc) · 1.78 KB
/
mix.exs
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
defmodule ExParsec.Mixfile do
use Mix.Project
def project() do
[name: "ExParsec",
description: "A parser combinator library inspired by Parsec.",
app: :ex_parsec,
version: "0.2.1",
elixir: "~> 0.15.1",
source_url: "https://github.com/alexrp/ex_parsec",
homepage_url: "https://hex.pm/packages/ex_parsec",
deps: deps(),
docs: docs(),
package: package(),
aliases: aliases(),
test_coverage: coverage()]
end
def application() do
[applications: [:monad]]
end
defp deps() do
[{:benchfella, github: "alco/benchfella", only: [:dev]},
{:coverex, "~> 0.0.7", only: [:test]},
{:dialyze, "~> 0.1.2", only: [:dev]},
{:earmark, "~> 0.1.10", only: [:dev]},
{:ex_doc, "~> 0.5.2", only: [:dev]},
{:monad, "~> 1.0.3"}]
end
defp docs() do
{ref, x} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
if x != 0, do: ref = "master"
[main: "README",
readme: true,
source_ref: ref]
end
defp package() do
[contributors: ["Alex Rønne Petersen"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/alexrp/ex_parsec",
"Documentation" => "http://alexrp.com/ex_parsec"}]
end
defp aliases() do
[make: ["deps.get", "deps.compile", "docs"],
test: ["test --trace --cover"],
wipe: ["clean", &wipe/1]]
end
defp coverage() do
[tool: Coverex.Task]
end
defp wipe(_) do
File.rm_rf!("_build")
File.rm_rf!(Path.join("bench", "graphs"))
File.rm_rf!(Path.join("bench", "snapshots"))
File.rm_rf!("cover")
File.rm_rf!("docs")
end
end