-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
63 lines (52 loc) · 1.33 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
defmodule Aeacus.Mixfile do
use Mix.Project
def project do
[
app: :aeacus,
version: "0.3.0",
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
description: description,
package: package,
deps: deps
]
end
def application do
[applications: applications(Mix.env)]
end
#
# Private
#
# Specifies which paths to compile per environment
defp elixirc_paths(:test), do: ["test/support"] ++ elixirc_paths(:prod)
defp elixirc_paths(_), do: ["lib"]
defp applications(:test) do
[:logger, :ecto, :postgrex] ++ applications(:prod)
end
defp applications(_) do
[:comeonin]
end
defp deps do
[
{:comeonin, "~> 1.0"},
{:ex_doc, ">=0.1.0", only: [:dev, :test]},
{:earmark, ">= 0.0.0", only: [:dev, :test]},
{:ecto, "~> 1.0", only: :test},
{:postgrex, ">= 0.0.0", only: :test}
]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Zachary Moshansky"],
licenses: ["BSD 3-Clause"],
links: %{"GitHub" => "https://github.com/zmoshansky/aeacus"}
]
end
defp description do
"""
A simple, secure, and highly configurable Elixir identity [username |
email | id | etc.]/password authentication module; Compatible with Ecto.
"""
end
end