forked from secretworry/as_nested_set
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
52 lines (45 loc) · 1.25 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
defmodule AsNestedSet.Mixfile do
use Mix.Project
def project do
[app: :as_nested_set,
version: "3.1.2",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
description: description(),
package: package(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
defp description do
"""
An ecto based Nested set model implementation
"""
end
defp package do
[
name: :as_nested_set,
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/secretworry/as_nested_set"}
]
end
def application do
[applications: app_list(Mix.env)]
end
def app_list(:test), do: app_list() ++ [:ecto, :postgrex, :ex_machina]
def app_list(_), do: app_list()
def app_list, do: [:logger]
defp deps do
[
{:ecto, "~> 2.2.0"},
{:ex_doc, ">= 0.18.3", only: :dev},
{:postgrex, ">= 0.13.5", only: [:test]},
{:ex_machina, "~> 2.2", only: [:test]}
]
end
defp elixirc_paths(:test), do: elixirc_paths() ++ ["test/support"]
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths, do: ["lib"]
end