-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
60 lines (54 loc) · 1.48 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
defmodule Hammer.Backend.Mnesia.MixProject do
use Mix.Project
@version "0.7.0-rc.1"
def project do
[
app: :hammer_backend_mnesia,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
description: "Mnesia backend for Hammer rate-limiter",
source_url: "https://github.com/ExHammer/hammer-backend-mnesia",
homepage_url: "https://github.com/ExHammer/hammer-backend-mnesia",
docs: docs(),
deps: deps(),
package: package(),
test_coverage: [summary: [threshold: 85]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :mnesia]
]
end
def docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md"],
source_ref: "v#{@version}"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:benchee, "~> 1.2", only: :bench},
{:credo, "~> 1.7", only: [:dev, :test]},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:ex_doc, "~> 0.35", only: :dev},
{:hammer, "7.0.0-rc.4"}
]
end
defp package do
[
name: :hammer_backend_mnesia,
maintainers: ["Emmanuel Pinault", "June Kelly"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/ExHammer/hammer-backend-mnesia",
"Changelog" =>
"https://github.com/ExHammer/hammer-backend-mnesia/blob/master/CHANGELOG.md"
}
]
end
end