forked from danhper/seedex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
50 lines (43 loc) · 1.31 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
defmodule Seedex.Mixfile do
use Mix.Project
@version "0.3.0"
def project do
[app: :seedex,
version: @version,
elixir: "~> 1.1",
description: "Seed data generation for Ecto",
source_url: "https://github.com/danhper/seedex",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
deps: deps(),
docs: [source_ref: "#{@version}", extras: ["README.md"], main: "readme"]]
end
def application do
[applications: applications(Mix.env),
description: 'Seed data generation for Ecto']
end
defp applications(:test), do: applications(:all) ++ [:ecto, :postgrex]
defp applications(_all), do: [:logger]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_all), do: ["lib"]
defp deps do
[{:ecto, "~> 1.1 or ~> 2.1 or ~> 3.0"},
{:ecto_sql, "~> 3.0"},
{:postgrex, "~> 0.13", only: [:test]},
{:earmark, "~> 1.0", only: :docs},
{:ex_doc, "~> 0.14", only: :docs}]
end
defp package do
[
maintainers: ["Daniel Perez"],
files: ["lib", "mix.exs", "README.md"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/danhper/seedex",
"Docs" => "http://hexdocs.pm/seedex/"
}
]
end
end