forked from ExHammer/hammer-backend-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
59 lines (53 loc) · 1.51 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
defmodule HammerBackendRedis.Mixfile do
use Mix.Project
@version "6.1.2"
def project do
[
app: :hammer_backend_redis,
description: "Redis backend for Hammer rate-limiter",
source_url: "https://github.com/ExHammer/hammer-backend-redis",
homepage_url: "https://github.com/ExHammer/hammer-backend-redis",
version: "#{@version}",
elixir: "~> 1.12",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [summary: [threshold: 75]]
]
end
def application do
[extra_applications: [:logger]]
end
def docs do
[
main: "overview",
extras: ["guides/Overview.md", "CHANGELOG.md"],
source_ref: "v#{@version}",
main: "overview",
formatters: ["html", "epub"]
]
end
defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test]},
{:dialyxir, "~> 1.1", only: [:dev], runtime: false},
{:ex_doc, "~> 0.28", only: :dev},
{:hammer, git: "https://github.com/nash-io/hammer.git", commit: "10d8237"},
{:mock, "~> 0.3.7", only: :test},
{:redix, "~> 1.1"}
]
end
defp package do
[
name: :hammer_backend_redis,
maintainers: ["Emmanuel Pinault", "June Kelly"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/ExHammer/hammer-backend-redis",
"Changelog" => "https://github.com/ExHammer/hammer-backend-redis/blob/master/CHANGELOG.md"
}
]
end
end