forked from benawad/dogehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
74 lines (68 loc) · 1.91 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
defmodule Kousa.MixProject do
use Mix.Project
def project do
[
app: :kousa,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test
],
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases()
]
end
def application do
dev_only_apps = if Mix.env() == :dev, do: [:remix], else: []
[
mod: {Kousa, []},
extra_applications: [:logger, :amqp, :ueberauth_github, :prometheus_ex] ++ dev_only_apps
]
end
defp deps do
[
{:amqp, "~> 1.0"},
# TODO: consider switching to Registry
{:gen_registry, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
# TODO: switch from poison to jason everywhere
{:poison, "~> 3.1"},
{:ecto_sql, "~> 3.0"},
{:jason, "~> 1.2"},
{:joken, "~> 2.0"},
{:elixir_uuid, "~> 1.2"},
# TODO: switch off of httpoison to, e.g. Mojito or Finch
{:httpoison, "~> 1.8"},
{:decorator, "~> 1.2"},
{:sentry, "~> 8.0"},
{:postgrex, ">= 0.0.0"},
{:remix, "~> 0.0.1", only: :dev},
{:ueberauth, "~> 0.6"},
{:ueberauth_github, "~> 0.7"},
{:oauther, "~> 1.1"},
{:extwitter, "~> 0.12"},
{:ueberauth_twitter, "~> 0.3"},
{:prometheus_ex, "~> 3.0"},
{:prometheus_plugs, "~> 1.1.1"},
{:timex, "~> 3.6"},
# style ENFORCEMENT
{:credo, "~> 1.5.5"},
# test helpers
{:faker, "~> 0.16.0", only: :test},
{:excoveralls, "~> 0.10", only: :test}
]
end
defp elixirc_paths(:test), do: ["lib", "test/_support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end