forked from asiniy/ecto_materialized_path
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
45 lines (40 loc) · 1.11 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
defmodule EctoMaterializedPath.Mixfile do
use Mix.Project
@project_url "https://github.com/niknetniko/ecto_materialized_trail"
@version "0.3.0"
def project do
[
app: :ecto_materialized_trail,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
source_url: @project_url,
homepage_url: @project_url,
description: "Tree structure & hierarchy for ecto models. Uses the materialized path pattern",
package: package(),
deps: deps()
]
end
defp elixirc_paths(:test), do: elixirc_paths()
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths(), do: ["lib"]
defp deps do
[
{:ecto, ">= 3.0.0"},
{:ex_machina, "~> 2.7.0", only: :test},
{:ex_doc, "~> 0.21", only: :dev, runtime: false}
]
end
defp package() do
[
name: :ecto_materialized_trail,
maintainers: ["Alex Antonov", "Niko Strijbol"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => @project_url
}
]
end
end