-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
63 lines (56 loc) · 1.48 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
defmodule PagedQuery.MixProject do
use Mix.Project
def project do
[
app: :paged_query,
version: "0.0.2",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
description: description(),
dialyzer: [
plt_add_apps: [:mix, :ex_unit],
check_plt: true
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ecto, "~> 3.6"},
{:ecto_sqlite3, "~> 0.5.5", only: [:dev, :test]},
{:ex_machina, "~> 2.7.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.10", only: :test}
]
end
defp description do
"Ecto query helpers for pagination"
end
defp package do
%{
licenses: ["MIT"],
maintainers: ["Alex Kwiatkowski"],
links: %{"GitHub" => "https://github.com/fremantle-industries/paged_query"}
}
end
defp elixirc_paths(env) when env == :dev or env == :test, do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
setup: ["ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end