-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
109 lines (97 loc) · 2.76 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
defmodule MQ.MixProject do
use Mix.Project
def project do
[
app: :rabbit_mq,
version: "0.0.19",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
description: description(),
dialyzer: [
plt_add_apps: [:ex_unit, :mix]
],
docs: docs(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env())
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:lager, :logger, :amqp]
]
end
defp docs do
[
filter_prefix: "RabbitMQ",
main: "overview",
assets: "assets",
extra_section: "GUIDES",
extras: extras(),
groups_for_extras: groups_for_extras(),
nest_modules_by_prefix: [RabbitMQ.Consumer, RabbitMQ.Producer]
]
end
defp extras do
[
# License
"LICENSE.md",
# Introduction
"guides/introduction/overview.md",
# Advanced
"guides/advanced/topology.md",
"guides/advanced/consumers.md",
"guides/advanced/producers.md"
]
end
defp groups_for_extras do
[
Introduction: ~r/guides\/introduction\//,
Advanced: ~r/guides\/advanced\//
]
end
defp package do
[
# These are the default files included in the package
files: ~w(lib mix.exs README.md),
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/hqoss/rabbit_mq"},
maintainers: ["Slavo Vojacek"]
]
end
defp description do
"🐇 The RabbitMQ client that helps you build consistent and well-balanced Producer/Consumer pipelines"
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:amqp, "~> 1.4"},
{:poolboy, "~> 1.5.2"},
# Dev/Test-only deps
{:benchee, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_check, "~> 0.11", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: [:dev, :test], runtime: false},
{:uuid, "~> 1.1", only: [:dev, :test], runtime: false}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(env) when env in [:test, :ci], do: ["lib", "test/rabbit_mq"]
defp elixirc_paths(_), do: ["lib"]
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
# test: ["rabbit.init", "test"]
]
end
end