-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmix.exs
61 lines (54 loc) · 1.59 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 EctoLtree.MixProject do
use Mix.Project
def project do
[
app: :ecto_ltree,
version: "0.4.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [flags: [:unmatched_returns, :error_handling, :race_conditions, :underspecs]],
description: description(),
package: package(),
aliases: aliases(),
deps: deps(),
name: "EctoLtree",
source_url: "https://github.com/josemrb/ecto_ltree",
docs: [main: "readme", extras: ["README.md"]]
]
end
def application do
[
extra_applications: [:logger]
]
end
def elixirc_paths(:test), do: ["lib", "test/support"]
def elixirc_paths(_), do: ["lib"]
defp description() do
"A library that provides the necessary modules to support the PostgreSQL’s `ltree` data type with Ecto."
end
defp aliases do
[
"code.qa": ["credo --strict", "format --check-formatted"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp deps do
[
{:ecto, "~> 3.2"},
{:postgrex, ">= 0.0.0"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
{:dialyxir, "~> 1.1", only: :dev, runtime: false},
{:ecto_sql, "~> 3.2", only: :test}
]
end
defp package() do
[
licenses: ["MIT"],
maintainers: ["Jose Miguel Rivero Bruno (@josemrb)"],
links: %{"GitHub" => "https://github.com/josemrb/ecto_ltree"},
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*"]
]
end
end