-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
66 lines (58 loc) · 1.52 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
defmodule ProtoMock.MixProject do
use Mix.Project
@version "1.1.2"
@github_page "https://github.com/jbsf2/protomock"
def project do
[
app: :protomock,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_options: [warnings_as_errors: true],
elixirc_paths: elixirc_paths(Mix.env()),
consolidate_protocols: Mix.env() != :test,
# Docs
name: "ProtoMock",
description: "A library for mocking Elixir protocols",
homepage_url: @github_page,
source_url: "https://github.com/jbsf2/protomock",
docs: docs(),
package: package()
]
end
def application() do
[]
end
# ensure test/support is compiled
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:dialyxir, "~> 1.2", only: :dev, runtime: false},
{:ex_doc, "~> 0.30.3", only: :dev, runtime: false}
]
end
defp docs do
[
api_reference: false,
authors: ["JB Steadman"],
canonical: "http://hexdocs.pm/protomock",
extras: ["README.md"],
main: "ProtoMock",
source_ref: "v#{@version}",
skip_undefined_reference_warnings_on: ["ProtoMock.enable_type_checking/0"]
]
end
defp package do
[
files: ~w(mix.exs README.md lib),
licenses: ["MIT"],
links: %{
"GitHub" => @github_page
},
maintainers: ["JB Steadman"]
]
end
end