-
Notifications
You must be signed in to change notification settings - Fork 18
/
mix.exs
89 lines (82 loc) · 2.27 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
defmodule PhoenixStarter.Mixfile do
use Mix.Project
def project do
[
app: :phoenix_starter,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
deps: deps
]
end
def application do
[
mod: {PhoenixStarter, []},
applications: applications(Mix.env)
]
end
def applications(env) when env in [:test] do
applications(:default) ++ [:ex_machina]
end
def applications(_) do
[
:comeonin,
:cowboy,
:logger,
:oauth2,
:phoenix,
:phoenix_pubsub,
:phoenix_ecto,
:phoenix_html,
:postgrex,
:ueberauth_github,
:ueberauth_identity,
:ueberauth_slack,
:ueberauth_google,
:ueberauth_facebook,
:ueberauth_twitter,
:ueberauth_fitbit,
:gettext
]
end
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
defp deps do
[
{:ex_admin, github: "smpallen99/ex_admin"},
{:ex_machina, "~> 1.0", only: [:dev, :test]},
{:phoenix, "~> 1.2.1"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.0"},
{:postgrex, ">= 0.0.0", override: true},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:guardian_db, "~> 0.4"},
{:guardian, "~> 0.12"},
{:ueberauth, git: "https://github.com/ueberauth/ueberauth.git", override: true},
{:ueberauth_github, git: "https://github.com/ueberauth/ueberauth_github.git"},
{:ueberauth_identity, "~> 0.2"},
{:ueberauth_slack, "~> 0.3"},
{:ueberauth_google, "~> 0.3"},
{:ueberauth_facebook, "~> 0.4"},
{:ueberauth_twitter, "~> 0.2"},
{:ueberauth_fitbit, "~> 0.2"},
{:oauth, github: "tim/erlang-oauth"},
{:comeonin, "~> 2.5"},
{:cowboy, "~> 1.0"},
{:gettext, "~> 0.11"},
{:edown, "~> 0.8"}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"test": ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end