forked from mojotech/scrivener_ecto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
68 lines (61 loc) · 1.4 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
defmodule Scrivener.Ecto.Mixfile do
use Mix.Project
def project do
[
app: :scrivener_ecto,
version: "1.3.0-dev",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
package: package(),
description: "Paginate your Ecto queries with Scrivener",
deps: deps(),
aliases: aliases(),
docs: [
main: "readme",
extras: [
"README.md"
]
]
]
end
defp aliases do
[
"db.reset": [
"ecto.drop",
"ecto.create",
"ecto.migrate"
]
]
end
def application do
[
applications: applications(Mix.env)
]
end
defp applications(:test), do: [:scrivener, :postgrex, :ecto, :logger]
defp applications(_), do: [:scrivener, :logger]
defp deps do
[
{:scrivener, "~> 2.3"},
{:ecto, "~> 2.0"},
{:dialyxir, "~> 0.5.0", only: :dev},
{:earmark, ">= 0.0.0", only: :dev},
{:ex_doc, "~> 0.16.0", only: :dev},
{:postgrex, "~> 0.11.0 or ~> 0.12.0 or ~> 0.13.0", optional: true}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Drew Olson"],
licenses: ["MIT"],
links: %{"github" => "https://github.com/drewolson/scrivener_ecto"},
files: [
"lib/scrivener",
"mix.exs",
"README.md"
]
]
end
end