forked from trenpixster/addict
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
63 lines (55 loc) · 1.47 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 Addict.Mixfile do
use Mix.Project
def project do
[
app: :addict,
version: "0.3.2",
elixir: "~> 1.2",
description: description(),
package: package(),
docs: &docs/0,
deps: deps()
]
end
def application do
[applications: applications(Mix.env())]
end
defp applications(:test) do
[:plug] ++ applications(:prod)
end
defp applications(_) do
[:phoenix, :ecto, :comeonin, :mailgun, :logger, :crypto]
end
defp deps do
[
{:cowboy, "~> 1.0"},
{:phoenix, "~> 1.1"},
{:ecto, "~> 2.0"},
{:comeonin, "~> 2.1"},
{:mailgun, "~> 0.1"},
{:mock, "~> 0.1.3", only: :test},
{:postgrex, "~> 0.11", only: :test},
{:earmark, "~> 0.2", only: :dev},
{:ex_doc, "~> 0.11", only: :dev}
]
end
defp package do
[
files: ["lib", "boilerplate", "docs", "mix.exs", "README*", "LICENSE*", "configs*"],
contributors: ["Nizar Venturini"],
maintainers: ["Nizar Venturini"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/meltwater/addict"}
]
end
defp description do
"""
Addict allows you to manage users on your Phoenix app easily. Register, login,
logout, recover password and password updating is available off-the-shelf.
"""
end
defp docs do
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
[source_ref: ref, main: "readme", extras: ["README.md", "configs.md"]]
end
end