-
Notifications
You must be signed in to change notification settings - Fork 36
/
mix.exs
87 lines (80 loc) · 2.2 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
defmodule Gnat.Mixfile do
use Mix.Project
@source_url "https://github.com/nats-io/nats.ex"
@version "1.9.0"
def project do
[
app: :gnat,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
propcheck: [counter_examples: "test/counter_examples"],
dialyzer: [ignore_warnings: ".dialyzer_ignore.exs"],
deps: deps(),
docs: docs()
]
end
def application do
[extra_applications: [:logger, :ssl]]
end
defp deps do
[
{:benchee, "~> 1.0", only: :dev},
{:cowlib, "~> 2.0"},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.27.3", only: :dev},
{:jason, "~> 1.1"},
{:connection, "~> 1.1"},
{:nimble_parsec, "~> 0.5 or ~> 1.0"},
{:nkeys, "~> 0.2"},
{:propcheck, "~> 1.0", only: :test},
{:telemetry, "~> 0.4 or ~> 1.0"}
]
end
defp docs do
[
main: "readme",
logo: "nats-icon-color.svg",
source_ref: "v#{@version}",
source_url: @source_url,
extras: [
"README.md",
"docs/js/introduction/overview.md",
"docs/js/introduction/getting_started.md",
"docs/js/guides/managing.md",
"docs/js/guides/push_based_consumer.md",
"docs/js/guides/broadway.md",
"CHANGELOG.md"
],
groups_for_extras: [
"JetStream Introduction": Path.wildcard("docs/js/introduction/*.md"),
"JetStream Guides": Path.wildcard("docs/js/guides/*.md")
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
description: "A nats client in pure elixir. Resilience, Performance, Ease-of-Use.",
licenses: ["MIT"],
links: %{
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
"Github" => @source_url
},
maintainers: [
"Jon Carstens",
"Devin Christensen",
"Dave Hackett",
"Steve Newell",
"Michael Ries",
"Garrett Thornburg",
"Masahiro Tokioka",
"Kevin Hoffman"
]
]
end
end