-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmix.exs
More file actions
60 lines (53 loc) · 1.31 KB
/
mix.exs
File metadata and controls
60 lines (53 loc) · 1.31 KB
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
defmodule Dispatch.Mixfile do
use Mix.Project
@version "0.4.1"
def project do
[
app: :dispatch,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/VoiceLayer/dispatch",
description: description(),
aliases: aliases(),
package: package(),
deps: deps(),
docs: [extras: ["README.md"]]
]
end
# Configuration for the OTP application
#
def application do
[applications: [:logger, :phoenix_pubsub, :libring], mod: {Dispatch, []}]
end
# Dependencies can be Hex packages:
#
defp deps do
[
{:libring, "~> 1.3"},
{:phoenix_pubsub, "~> 2.0"},
{:ex_doc, "~> 0.21.3", only: :dev}
]
end
defp description do
"""
A distributed service registry built on top of phoenix_pubsub.
Requests are dispatched to one or more services based on hashed keys.
"""
end
defp package do
[
files: ~w(lib test mix.exs README.md LICENSE.md),
maintainers: ["Gary Rennie", "Gabi Zuniga"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/voicelayer/dispatch",
"Docs" => "http://hexdocs.pm/dispatch"
}
]
end
defp aliases do
[test: "test --no-start"]
end
end