-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
85 lines (75 loc) · 1.66 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
defmodule YggdrasilRedis.MixProject do
use Mix.Project
@version "4.1.4"
@root "https://github.com/gmtprime/yggdrasil_redis"
def project do
[
app: :yggdrasil_redis,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
docs: docs()
]
end
#############
# Application
def application do
[
extra_applications: [:logger],
mod: {Yggdrasil.Redis.Application, []}
]
end
defp deps do
[
{:yggdrasil, "~> 4.1"},
{:redix_pubsub, "~> 0.4.2"},
{:uuid, "~> 1.1", only: [:dev, :test]},
{:ex_doc, "~> 0.18.4", only: :dev},
{:credo, "~> 1.0", only: :dev}
]
end
#########
# Package
defp package do
[
description: "Redis adapter for Yggdrasil (pub/sub)",
files: ["lib", "mix.exs", "README.md", ".formatter.exs"],
maintainers: ["Alexander de Sousa"],
licenses: ["MIT"],
links: %{
"Github" => @root
}
]
end
###############
# Documentation
defp docs do
[
source_url: @root,
source_ref: "v#{@version}",
main: Yggdrasil.Redis.Application,
formatters: ["html"],
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules do
[
Application: [
Yggdrasil.Redis.Application
],
Adapter: [
Yggdrasil.Settings.Redis,
Yggdrasil.Adapter.Redis
],
"Subscriber adapter": [
Yggdrasil.Subscriber.Adapter.Redis
],
"Publisher adapter": [
Yggdrasil.Publisher.Adapter.Redis
]
]
end
end