-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
79 lines (70 loc) · 1.6 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
72
73
74
75
76
77
78
79
defmodule Repatch.MixProject do
use Mix.Project
def version do
"1.3.0"
end
def description do
"Tool for mocking in tests"
end
def project do
[
app: :repatch,
version: version(),
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(),
name: "Repatch",
description: description(),
package: package(),
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/hissssst/repatch",
docs: docs(),
deps: deps()
]
end
def application do
[]
end
defp package do
[
description: description(),
licenses: ["BSD-2-Clause"],
files: [
"lib",
"mix.exs",
"README.md",
".formatter.exs"
],
maintainers: [
"Georgy Sychev"
],
links: %{
GitHub: "https://github.com/hissssst/repatch",
Changelog: "https://github.com/hissssst/repatch/blob/main/CHANGELOG.md"
}
]
end
defp docs do
[
source_ref: version(),
main: "readme",
extras: ["README.md"] ++ Path.wildcard("pages/*") ++ ["CHANGELOG.md"],
groups_for_extras: groups_for_extras()
]
end
defp groups_for_extras do
[
Learn: ~r(pages/.*)
]
end
defp deps do
[
# # Uncomment for development
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:credo, "~> 1.5", only: :dev, runtime: false},
{:ex_doc, "~> 0.28", only: :dev, runtime: false}
]
end
defp elixirc_paths(env \\ Mix.env())
defp elixirc_paths(:test), do: elixirc_paths(:prod) ++ ["test/support"]
defp elixirc_paths(_), do: ["lib"]
end