-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
109 lines (101 loc) · 2.95 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
defmodule Flashfeed.MixProject do
@moduledoc false
use Mix.Project
def project do
[
app: :flashfeed,
version: "0.6.2",
elixir: "~> 1.10.2",
description: description(),
dialyzer: dialyzer(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers() ++ [:phoenix_swagger],
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
if Mix.env() != :test do
[
mod: {Flashfeed.Application, []},
extra_applications: [:logger, :timex, :runtime_tools, :absinthe_plug],
included_applications: [:mnesia]
]
else
[
extra_applications: [:logger, :absinthe_plug, :runtime_tools, :os_mon],
included_applications: [:mnesia]
]
end
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp description do
"""
Local radio news feed for Alexa.
"""
end
defp package do
[
files: ["lib", "priv", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Alessandro Iob"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/alexiob/flashfeed-elixir"}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.2.1"},
{:ecto, "~> 3.4.4"},
{:ecto_sql, "~> 3.4.3"},
{:postgrex, "~> 0.15.4"},
{:httpoison, "~> 1.6.2"},
{:floki, "~> 0.26.0"},
{:timex, "~> 3.6.1"},
{:plug_cowboy, "~> 2.2.1"},
{:plug, "~> 1.10.1"},
{:cors_plug, "~> 2.0.2"},
{:exconstructor, "~> 1.1.0"},
{:spellbook, "~> 2.0.3"},
{:observer_cli, "~> 1.5.3"},
{:absinthe, "~> 1.5.0"},
{:absinthe_plug, "~> 1.5.0"},
{:absinthe_phoenix, "~> 2.0.0"},
{:phoenix, "~> 1.5.3"},
{:phoenix_pubsub, "~> 2.0.0"},
{:phoenix_ecto, "~> 4.1.0"},
{:phoenix_html, "~> 2.14.2", override: true},
{:phoenix_live_view, "~> 0.13.2", override: true},
{:phoenix_live_reload, "~> 1.2.2", only: [:dev]},
{:phoenix_swagger, "~> 0.8.2"},
{:phoenix_live_dashboard, "~> 0.2.5"},
{:pow, "~> 1.0.20"},
{:cachex, "~> 3.2.0"},
{:gettext, "~> 0.18.0"},
{:dialyxir, "~> 1.0.0", only: [:dev], runtime: false},
{:credo, "~> 1.4.0", only: [:dev, :test], runtime: false},
{:telemetry_poller, "~> 0.5.0"},
{:telemetry_metrics, "~> 0.5.0"}
]
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"]
test: ["test"]
]
end
defp dialyzer do
[
ignore_warnings: "dialyzer.ignore-warnings",
plt_add_apps: [:mix],
plt_core_path: "_build",
remove_defaults: [:unknown]
]
end
end