-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
71 lines (61 loc) · 1.63 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
62
63
64
65
66
67
68
69
70
71
defmodule CuratorRegisterable.Mixfile do
use Mix.Project
@version "0.1.0"
@url "https://github.com/curator-ex/curator_registerable"
@maintainers [
"Eric Sullivan",
]
def project do
[
app: :curator_registerable,
version: @version,
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
deps: deps,
description: "A Generator to support user registration",
package: package(),
source_url: @url,
homepage_url: @url,
docs: docs(),
dialyzer: [plt_add_deps: :project],
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[applications: _applications(Mix.env)]
end
defp _applications(:test), do: [:postgrex, :ecto, :logger]
defp _applications(_), do: [:logger]
defp deps do
[
{:curator, "~> 0.1.0"},
{:ecto, "~> 2.0"},
{:postgrex, ">= 0.11.1", optional: true},
{:credo, "~> 0.5", only: [:dev, :test]},
{:dialyxir, "~> 0.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.10", only: :dev},
]
end
def docs do
[
extras: ["README.md", "CHANGELOG.md"],
source_ref: "v#{@version}"
]
end
defp package do
[
name: :curator_registerable,
maintainers: @maintainers,
licenses: ["MIT"],
links: %{github: @url},
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
]
end
defp aliases do
["test": ["ecto.create --quiet", "ecto.migrate", "test"]]
end
end