-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmix.exs
47 lines (41 loc) · 1.03 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
defmodule Rewire.MixProject do
use Mix.Project
def project do
[
app: :rewire,
version: "0.10.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
description: description(),
source_url: "https://github.com/stephanos/rewire",
test_coverage: [tool: Rewire.TestCover]
]
end
defp description() do
"Dependency injection for Elixir. Zero code changes required."
end
def application do
[
extra_applications: [:logger, :tools],
mod: {Rewire.Setup, []}
]
end
defp deps do
[
{:mox, "~> 1.0", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "fixtures/"]
defp elixirc_paths(_), do: ["lib"]
defp package() do
[
licenses: ["Apache-2.0"],
files: ~w(lib mix.exs README* LICENSE* CHANGELOG*),
links: %{"GitHub" => "https://github.com/stephanos/rewire"}
]
end
end