-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
54 lines (49 loc) · 1.17 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
defmodule GitHubWebhook.MixProject do
use Mix.Project
def project do
[
app: :github_webhook,
version: "0.2.1",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
description: "Github webhook plug",
package: package(),
preferred_cli_env: [ci: :test],
test_coverage: [tool: ExCoveralls],
aliases: aliases(),
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp aliases do
[
ci: [
"format --check-formatted",
"credo --strict",
"compile --warnings-as-errors --force",
"coveralls.html"
]
]
end
defp deps do
[
{:jason, "~> 1.0", optional: true},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:plug, "~> 1.4"}
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/puretype/github_webhook"}
]
end
end