-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmix.exs
75 lines (65 loc) · 1.59 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 Krakex.Mixfile do
use Mix.Project
@version "0.7.0"
def project do
[
app: :krakex,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
dialyzer: dialyzer(),
docs: docs(),
source_url: github_url(),
test_coverage: [tool: ExCoveralls]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:httpoison, "~> 1.1"},
{:jason, "~> 1.1"},
{:excoveralls, "~> 0.8", only: :test},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.16", only: :dev, runtime: false}
]
end
def dialyzer do
[
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp docs do
[
main: "Krakex",
source_ref: "v#{@version}",
source_url: github_url()
]
end
defp description() do
"Elixir client for the Kraken Bitcoin Exchange API."
end
defp package() do
[
files: ["README.md", "LICENSE", "mix.exs", "lib/**/*.ex"],
maintainers: ["Erick Dennis"],
licenses: ["MIT"],
links: %{"GitHub" => github_url()}
]
end
defp github_url do
"https://github.com/edennis/krakex"
end
end