-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
59 lines (52 loc) · 1.18 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
defmodule PlugRest.Mixfile do
use Mix.Project
@project_description """
REST behaviour and Plug router for hypermedia web applications
"""
@version "0.14.0"
@source_url "https://github.com/christopheradams/plug_rest"
def project do
[
app: :plug_rest,
version: @version,
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
dialyzer: [plt_add_apps: [:mix, :eex]],
docs: docs(),
description: @project_description,
source_url: @source_url,
package: package(),
deps: deps()
]
end
def application do
[extra_applications: [:logger, :inets, :public_key]]
end
defp deps do
[
{:plug, "~> 1.7 or ~> 1.8"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false}
]
end
defp docs() do
[
source_ref: "v#{@version}",
main: "readme",
extras: [
"README.md": [title: "README"]
]
]
end
defp package do
[
name: :plug_rest,
maintainers: ["Christopher Adams"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => @source_url
}
]
end
end