-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
78 lines (69 loc) · 1.82 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
67
68
69
70
71
72
73
74
75
76
77
78
defmodule IpAccessControlPlug.MixProject do
@moduledoc false
use Mix.Project
@project_url "https://github.com/KineticCafe/ip_access_control"
@version "1.0.1"
def project do
[
app: :ip_access_control,
description: "Restrict access to a Plug-based application using IP and CIDR access lists.",
version: @version,
source_url: @project_url,
homepage_url: @project_url,
name: "IP Access Control Plug",
elixir: "~> 1.8",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
deps: deps() ++ dev_deps(),
docs: docs()
]
end
def application do
[extra_applications: [:logger]]
end
# Specifies which paths to compile per environment.
# defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_) do
["lib"]
end
defp package do
[
maintainers: ["Austin Ziegler", "Kinetic Commerce"],
licenses: ["MIT"],
links: %{
"Github" => @project_url
}
]
end
defp docs do
[
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/ip_access_control",
main: "IpAccessControl",
source_url: @project_url,
extras: ["README.md", "Changelog.md", "Contributing.md", "Licence.md"]
]
end
defp deps do
[
{:plug, "~> 1.0"},
{:bitwise_ip, "~> 1.0"}
]
end
if Version.compare(System.version(), "1.15.0") == :lt do
defp dev_deps, do: []
else
defp dev_deps do
[
{:credo, "~> 1.0", only: [:dev], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:ex_doc, "~> 0.30", only: [:dev], runtime: false}
]
end
end
end