-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
134 lines (123 loc) · 2.95 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
defmodule Yggdrasil.Mixfile do
use Mix.Project
@version "6.0.3"
@root "https://github.com/gmtprime/yggdrasil"
def project do
[
name: "Yggdrasil",
app: :yggdrasil,
version: @version,
elixir: "~> 1.12",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
dialyzer: dialyzer(),
package: package(),
deps: deps(),
docs: docs()
]
end
#############
# Application
def application do
[
extra_applications: [:logger],
mod: {Yggdrasil.Application, []}
]
end
defp deps do
[
{:exreg, "~> 1.0"},
{:phoenix_pubsub, "~> 2.0"},
{:poolboy, "~> 1.5"},
{:jason, "~> 1.3"},
{:skogsra, "~> 2.3"},
{:ex_doc, "~> 0.28", only: [:dev, :test], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false}
]
end
def dialyzer do
[
plt_file: {:no_warn, "priv/plts/yggdrasil.plt"}
]
end
#########
# Package
defp package do
[
description: "Agnostic pub/sub with Redis, RabbitMQ and Postgres support",
files: ["lib", "priv", "mix.exs", "README.md", "CHANGELOG.md"],
maintainers: ["Alexander de Sousa"],
licenses: ["MIT"],
links: %{
"Changelog" => "#{@root}/blob/master/CHANGELOG.md",
"Github" => @root
}
]
end
###############
# Documentation
defp docs do
[
main: "readme",
logo: "logo.png",
source_url: @root,
source_ref: "v#{@version}",
extras: [
"README.md",
"CHANGELOG.md"
],
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules do
[
Yggdrasil: [
Yggdrasil
],
Application: [
Yggdrasil.Config
],
Channels: [
Yggdrasil.Channel,
Yggdrasil.Registry
],
Adapters: [
Yggdrasil.Adapter,
Yggdrasil.Adapter.Elixir,
Yggdrasil.Adapter.Bridge
],
"Subscriber adapters": [
Yggdrasil.Subscriber.Adapter,
Yggdrasil.Subscriber.Adapter.Elixir,
Yggdrasil.Subscriber.Adapter.Bridge
],
"Publisher adapters": [
Yggdrasil.Publisher.Adapter,
Yggdrasil.Publisher.Adapter.Elixir,
Yggdrasil.Publisher.Adapter.Bridge
],
Backends: [
Yggdrasil.Backend,
Yggdrasil.Backend.Default
],
Transformers: [
Yggdrasil.Transformer,
Yggdrasil.Transformer.Default,
Yggdrasil.Transformer.Json
],
"Message distribution": [
Yggdrasil.Publisher,
Yggdrasil.Publisher.Generator,
Yggdrasil.Subscriber.Generator,
Yggdrasil.Subscriber.Distributor,
Yggdrasil.Subscriber.Manager,
Yggdrasil.Subscriber.Publisher
],
"Bridge subscribers": [
Yggdrasil.Adapter.Bridge.Generator,
Yggdrasil.Adapter.Bridge.Subscriber
]
]
end
end