-
Notifications
You must be signed in to change notification settings - Fork 8
/
mix.exs
53 lines (46 loc) · 1.37 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
defmodule Tributary.Mixfile do
use Mix.Project
@version "0.2.1"
@source_url "https://github.com/davidantaramian/tributary"
def project do
[app: :tributary,
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
package: package,
name: "Tributary for Ecto",
version: @version,
docs: [source_ref: "v#{@version}", main: "Tributary"],
source_url: @source_url,
homepage_url: @source_url,
description: """
A simple stream generation library for Ecto queries that facilitates
more efficient paging of queries both in the database and in your
Ecto-reliant applicaton.
"""
]
end
def application do
[applications: applications(Mix.env)]
end
defp applications(:test), do: [:postgrex, :ecto, :logger]
defp applications(_), do: [:ecto, :logger]
defp deps do
[{:ecto, "~> 2.0"},
{:earmark, "~> 0.1", only: [:dev, :docs]},
{:ex_doc, "~> 0.10", only: [:dev, :docs]},
{:postgrex, "~> 0.12", only: [:test]}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[maintainers: ["David Antaramian"],
licenses: ["MIT"],
links: %{github: @source_url},
files: ~w(lib mix.exs README.md LICENSE.md)
]
end
end