forked from supabase/realtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
62 lines (55 loc) · 1.56 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
defmodule Hadrian.MixProject do
use Mix.Project
@version "0.0.0-automated"
@elixir "~> 1.5"
def project do
[
app: :hadrian,
aliases: aliases(),
version: @version,
elixir: @elixir,
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Hadrian.Application, []},
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
"ecto.setup": ["ecto.create --quiet", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.setup", "test"]
]
end
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:epgsql, "~> 4.5"},
# TODO: See if you can remove timex
{:timex, "~> 3.0"},
{:telemetry, "~> 0.4 or ~> 1.0"},
{:retry, "~> 0.16.0"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:test, :dev], runtime: false},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
{:ecto_sql, "~> 3.0", only: [:dev, :test]},
{:postgrex, ">= 0.0.0", only: [:dev, :test]}
]
end
#
end