forked from beam-community/ex_machina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
56 lines (50 loc) · 1.39 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
defmodule ExMachina.Mixfile do
use Mix.Project
@project_url "https://github.com/thoughtbot/ex_machina"
@version "2.7.0"
def project() do
[
app: :ex_machina,
version: @version,
elixir: ">= 1.4.0",
description: "A factory library by the creators of FactoryBot (née FactoryGirl)",
source_url: @project_url,
homepage_url: @project_url,
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
docs: [main: "readme", extras: ["README.md"]],
deps: deps()
]
end
def application() do
[
extra_applications: [:logger],
mod: {ExMachina, []}
]
end
defp deps() do
[
{:ex_doc, "~> 0.14", only: :dev},
{:earmark, ">= 0.0.0", only: :dev},
{:ecto, "~> 2.2 or ~> 3.0", optional: true},
{:ecto_sql, "~> 3.0", optional: true},
{:jason, "~> 1.0", only: :test},
{:postgrex, "~> 0.14.0", only: :test}
]
end
defp package() do
[
maintainers: ["German Velasco"],
licenses: ["MIT"],
links: %{
"GitHub" => @project_url,
"Made by thoughtbot" => "https://thoughtbot.com/services/elixir-phoenix"
}
]
end
defp elixirc_paths(:test), do: elixirc_paths() ++ ["test/support"]
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths(), do: ["lib"]
end