-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
75 lines (69 loc) · 1.8 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
defmodule KomachiHeartbeat.MixProject do
use Mix.Project
@source_url "https://github.com/ne-sachirou/ex_komachi_heartbeat"
@version "0.5.1"
def project do
[
app: :komachi_heartbeat,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
dialyzer: [
plt_add_apps: [:inets, :mix],
flags: [:no_undefined_callbacks],
remove_defaults: [:unknown]
],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.github": :test,
"coveralls.html": :test
]
]
end
def application, do: [extra_applications: [:logger]]
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:inner_cotton, github: "ne-sachirou/inner_cotton", only: [:dev, :test]},
{:jason, "~> 1.0", optional: true},
{:mock, "~> 0.3", only: :test},
{:plug, "~> 1.5"},
{:poison, ">= 3.0.0", optional: true}
]
end
def package do
[
name: :komachi_heartbeat,
description: "Vital monitoring Elixir Web application.",
licenses: ["GPL-3.0-or-later"],
maintainers: ["ne_Sachirou <utakata.c4se@gmail.com>"],
files: [
"LICENSE",
"README.md",
"mix.exs",
"lib/*.ex",
"lib/komachi_heartbeat"
],
links: %{GitHub: @source_url}
]
end
defp docs do
[
extras: [
"CONTRIBUTING.md": [title: "Contributing"],
"LICENSE": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
homepage_url: @source_url,
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
end