-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
82 lines (76 loc) · 1.88 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
76
77
78
79
80
81
82
defmodule Lob.Mixfile do
use Mix.Project
@source_url "https://github.com/lob/lob-elixir"
@version "1.5.0"
def project do
[
app: :lob_elixir,
version: @version,
elixir: "~> 1.12",
preferred_cli_env: ["coveralls.html": :test],
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
description: "Lob Elixir Library",
package: package(),
docs: docs(),
deps: deps(),
dialyzer: [
flags: [
:error_handling,
:no_opaque,
:race_conditions,
:unknown
],
ignore_warnings: ".dialyzer_ignore"
],
xref: [
exclude: [
:crypto
]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:bypass, "~> 2.1", only: :test},
{:confex, "~> 3.5.0"},
{:credo, "~> 1.5.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.14", only: :test},
{:httpoison, "~> 1.8"},
{:json, "~> 1.4"},
{:poison, "~> 5.0"},
{:pre_commit, "~> 0.3.4", only: :dev},
{:plug_cowboy, "~> 2.5"},
{:uuid, "~> 1.1", only: :test}
]
end
defp docs do
[
extras: [{:"README.md", title: "Overview"}],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp package do
[
description: "Lob Elixir Library",
maintainers: ["Lob"],
files: ["lib/**/*.ex", "mix*", "*.md", "LICENSE.txt"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/lob_elixir/changelog.html",
"GitHub" => @source_url,
"API Documentation" => "https://docs.lob.com/"
}
]
end
end