-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
58 lines (51 loc) · 1.1 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
defmodule UriTemplate.Mixfile do
use Mix.Project
@source_url "http://github.com/pezra/ex-uri-template"
@version "1.2.1"
def project do
[
app: :uri_template,
version: @version,
elixir: "~> 1.3",
deps: deps(),
docs: docs(),
package: package()
]
end
defp git_files do
System.cmd("git", ["ls-files", "-z"])
|> (fn {x, _} -> x end).()
|> String.split(<<0>>)
|> Enum.filter(fn x -> x != "" end)
end
defp package do
[
description: "RFC 6570 compliant URI template processor",
files: git_files(),
licenses: ["MIT"],
contributors: ["Peter Williams", "Julius Beckmann"],
links: %{GitHub: @source_url}
]
end
def application do
[]
end
defp deps do
[
{:poison, "~> 1.4", only: :test},
{:earmark, ">= 0.0.0", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp docs do
[
extras: [
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
end