-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
68 lines (60 loc) · 1.67 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
defmodule EctoMiddleware.MixProject do
use Mix.Project
def project do
[
aliases: aliases(),
app: :ecto_middleware,
version: "1.0.0",
elixir: "~> 1.13",
elixirc_options: [warnings_as_errors: true],
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_file: {:no_warn, "priv/plts/dialyzer.plt"}],
preferred_cli_env: [
test: :test,
"test.watch": :test,
coveralls: :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls],
package: package(),
description: description(),
source_url: "https://github.com/vereis/ecto_middleware"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Lint dependencies
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
# Test dependencies
{:mix_test_watch, "~> 1.1", only: :test, runtime: false},
{:excoveralls, "~> 0.16", only: :test, runtime: false},
# Misc dependencies
{:ex_doc, "~> 0.14", only: :dev, runtime: false}
]
end
defp aliases do
[lint: ["format --check-formatted --dry-run", "credo --strict", "dialyzer"]]
end
defp description() do
"""
Implements a generic `middleware/2` callback for any module that uses `Ecto.Repo` to customize behaviour.
"""
end
defp package() do
[
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/vereis/ecto_middleware"
}
]
end
end