forked from kipcole9/money
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
100 lines (90 loc) · 2.45 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
defmodule Money.Mixfile do
use Mix.Project
@version "2.9.0"
def project do
[
app: :ex_money,
version: @version,
elixir: "~> 1.5",
name: "Money",
source_url: "https://github.com/kipcole9/money",
docs: docs(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [ignore_warnings: ".dialyzer_ignore_warnings"]
]
end
defp description do
"Money functions for the serialization of and operations on a money data type."
end
defp package do
[
maintainers: ["Kip Cole"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/kipcole9/money",
"Readme" => "https://github.com/kipcole9/money/blob/v#{@version}/README.md",
"Changelog" => "https://github.com/kipcole9/money/blob/v#{@version}/CHANGELOG.md",
"Roadmap" => "https://github.com/kipcole9/money/blob/v#{@version}/ROADMAP.md"
},
files: [
"lib",
"priv/SQL",
"config",
"mix.exs",
"README.md",
"CHANGELOG.md",
"LICENSE.md",
"ROADMAP.md"
]
]
end
def application do
[
mod: {Money.Application, []},
extra_applications: [:inets, :logger]
]
end
def docs do
[
source_ref: "v#{@version}",
extras: ["README.md", "CHANGELOG.md", "LICENSE.md"],
main: "readme",
groups_for_modules: groups_for_modules(),
logo: "logo.png"
]
end
defp groups_for_modules do
[
"Exchange Rates": ~r/^Money.ExchangeRates.?/,
Subscriptions: ~r/^Money.Subscription.?/,
Ecto: ~r/^Money.Ecto.?/
]
end
def aliases do
[]
end
defp deps do
[
{:ex_cldr, "~> 1.6"},
{:ex_cldr_numbers, "~> 1.4"},
{:decimal, "~> 1.4"},
{:ecto, "~> 2.1", optional: true},
{:phoenix_html, "~> 2.0", optional: true},
{:ex_doc, "~> 0.18", only: :dev},
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
{:jason, "~> 1.0", optional: true},
{:poison, "~> 2.2 or ~> 3.1", optional: true},
{:stream_data, "~> 0.4.1", only: [:dev, :test]},
{:gringotts, "~>1.1", optional: true}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end