-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmix.exs
More file actions
45 lines (40 loc) · 966 Bytes
/
mix.exs
File metadata and controls
45 lines (40 loc) · 966 Bytes
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
defmodule HexMini.MixProject do
use Mix.Project
def project do
[
app: :hex_mini,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
def application do
[
mod: {HexMini.Application, []},
extra_applications: [:logger]
]
end
defp elixirc_paths(:prod), do: ["lib", "rel/release_tasks"]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ecto_sql, "~> 3.0.0"},
{:postgrex, "~> 0.14.0"},
{:plug_cowboy, "~> 2.0"},
{:hex_core, "~> 0.3"},
{:jason, "~> 1.1"},
{:distillery, "~> 2.0"},
{:ex_machina, "~> 2.2", only: :test},
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
]
end
end