-
Notifications
You must be signed in to change notification settings - Fork 19
/
mix.exs
90 lines (78 loc) · 2 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
79
80
81
82
83
84
85
86
87
88
89
90
defmodule Sentinel.Mixfile do
use Mix.Project
@version "2.0.1"
@source_url "https://github.com/britton-jb/sentinel"
def project do
[app: :sentinel,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
package: package(),
description: description(),
source_url: @source_url,
aliases: aliases(),
deps: deps()]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[applications: applications(Mix.env)]
end
defp applications(:test), do: applications(:all) ++ [:ex_machina]
defp applications(_all), do: [
:bamboo,
:comeonin,
:ecto,
:guardian,
:logger,
:phoenix,
:phoenix_html,
:postgrex,
:ueberauth,
:ueberauth_identity,
]
defp package do
[
maintainers: ["Britton Broderick"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url,
"Phoenix" => "https://github.com/phoenixframework/phoenix"}
]
end
defp description do
"""
Adds helpful extras to Guardian like default mailer support, as well
as out of the box controllers and routes
"""
end
defp deps do
[
{:guardian, "~> 0.14.2"},
{:guardian_db, "~> 0.8.0", optional: true},
{:secure_random, "~> 0.2"},
{:bamboo, "~> 0.7"},
{:comeonin, "~> 2.0"},
{:cowboy, "~> 1.0"},
{:phoenix, "~> 1.1"},
{:phoenix_html, "~> 2.2"},
{:phoenix_ecto, "~> 3.1"},
{:ecto, "~> 2.1"},
{:postgrex, ">= 0.11.1"},
{:jose, "~> 1.4"},
{:ueberauth, "~> 0.4"},
{:ueberauth_identity, "~> 0.2"},
# DEV
{:credo, "~> 0.5", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev},
# TESTING
{:mock, "~> 0.1", only: :test},
{:ex_machina, "~> 1.0", only: :test},
]
end
defp aliases do
[
"test": ["ecto.drop", "ecto.create --quiet", "ecto.migrate", "test"]
]
end
end