-
Notifications
You must be signed in to change notification settings - Fork 8
/
mix.exs
70 lines (63 loc) · 1.61 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
defmodule Hunter.Mixfile do
use Mix.Project
@version "0.5.2-dev"
def project do
[
app: :hunter,
version: @version,
elixir: "~> 1.8",
docs: docs(),
package: package(),
source_url: "https://github.com/milmazz/hunter",
description: "Elixir client for Mastodon, a GNU social-compatible micro-blogging service",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer()
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
# Specify extra applications you'll use from Erlang/Elixir
[
extra_applications: [:logger],
mod: {Hunter, []}
]
end
defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:finch, "~> 0.2"},
{:mox, "~> 1.0", only: :test},
{:poison, "~> 5.0"}
]
end
defp package do
[
licenses: ["Apache 2.0"],
maintainers: ["Milton Mazzarri"],
links: %{"GitHub" => "https://github.com/milmazz/hunter"}
]
end
defp docs do
[
extras: [
"README.md": [title: "README"],
"CONTRIBUTING.md": [title: "How to contribute"],
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
"CHANGELOG.md": [title: "Changelog"]
],
main: "readme"
]
end
defp dialyzer do
[
plt_add_apps: [:mix, :ex_unit],
check_plt: true,
flags: [:unmatched_returns, :error_handling, :no_opaque]
]
end
end