-
Notifications
You must be signed in to change notification settings - Fork 23
/
mix.exs
61 lines (54 loc) · 1.55 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
defmodule Filtrex.Mixfile do
use Mix.Project
def project do
[
app: :filtrex,
version: "0.4.3",
elixir: "~> 1.6",
description: description(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
name: "Filtrex",
docs: [main: "Filtrex", source_url: "https://github.com/rcdilorenzo/filtrex"]
]
end
defp elixirc_paths(:test), do: ~w(lib test/support)
defp elixirc_paths(_), do: ~w(lib)
def application do
[extra_applications: [:logger, :tzdata] ++ applications(Mix.env())]
end
defp applications(:test), do: [:postgrex, :ecto, :ex_machina]
defp applications(_), do: []
defp description do
"""
A library for performing and validating complex filters from a client (e.g. smart filters)
"""
end
defp deps do
[
{:postgrex, ">= 0.0.0", only: :test},
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.0"},
{:timex, "~> 3.1"},
{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.11", only: :dev},
{:inch_ex, ">= 0.0.0", only: [:dev, :docs]},
{:plug, "~> 1.1.2", only: :test},
{:ex_machina, "~> 0.6.1", only: :test},
{:mix_test_watch, "~> 0.3", only: :dev, runtime: false}
]
end
defp package do
[
maintainers: ["Christian Di Lorenzo"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/rcdilorenzo/filtrex",
"Docs" => "http://rcdilorenzo.github.io/filtrex"
}
]
end
end