-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
64 lines (55 loc) · 1.31 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
defmodule Sortex.MixProject do
use Mix.Project
def project do
[
app: :sortex,
version: "0.2.2",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
aliases: aliases()
]
end
defp elixirc_paths(:test),
do: [
"lib",
"test/database",
"test/route_helpers.ex"
]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: extra_applications(Mix.env())
]
end
defp extra_applications(:test) do
[:postgrex, :ecto, :logger]
end
defp extra_applications(_) do
[:logger]
end
defp deps do
[
{:ecto_sql, "~> 3.6"},
{:phoenix_html, "~> 3.0"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:floki, "~> 0.33.0", only: :test, runtime: false},
{:plug, "~> 1.12", only: :test, runtime: false},
{:postgrex, ">= 0.0.0", only: :test}
]
end
defp package do
[
files: ["lib", "mix.exs", "README*"],
maintainers: [""],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/WhiteHatuk/sortex"},
description: "A magical way to add sorting dynamically to ecto queries"
]
end
defp aliases do
[test: ["ecto.create", "ecto.migrate", "test"]]
end
end