-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
55 lines (47 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
53
54
55
defmodule Hierarch.MixProject do
use Mix.Project
@project_url "https://github.com/Byzanteam-Labs/hierarch"
@version "0.2.1"
def project do
[
app: :hierarch,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
source_url: @project_url,
homepage_url: @project_url,
description: description(),
package: package(),
deps: deps()
]
end
def application do
[extra_applications: application(Mix.env())]
end
defp application(:test), do: [:postgrex, :ecto, :logger]
defp application(_), do: [:logger]
defp elixirc_paths(:test), do: elixirc_paths() ++ ["test/support"]
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths, do: ["lib"]
defp deps do
[
{:ecto, "~> 3.4"},
{:ecto_sql, "~> 3.4"},
{:postgrex, ">= 0.13.0"},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp description() do
"Hierarchy structure for ecto models with PostgreSQL LTree."
end
defp package() do
[
name: :hierarch,
files: ["lib", "mix.exs", "README*", "MIT-LICENSE"],
maintainers: ["Phil Chen"],
licenses: ["MIT"],
links: %{"GitHub" => @project_url}
]
end
end