-
Notifications
You must be signed in to change notification settings - Fork 18
/
mix.exs
97 lines (88 loc) · 2.44 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
defmodule Money.Sql.Mixfile do
use Mix.Project
@version "1.11.0"
def project do
[
app: :ex_money_sql,
version: @version,
elixir: "~> 1.11",
name: "Money SQL",
source_url: "https://github.com/kipcole9/money_sql",
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",
plt_add_apps: ~w(inets jason mix ecto ecto_sql eex)a
],
compilers: Mix.compilers()
]
end
defp description do
"Money functions for the serialization a money data type."
end
defp package do
[
maintainers: ["Kip Cole"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/kipcole9/money_sql",
"Readme" => "https://github.com/kipcole9/money_sql/blob/v#{@version}/README.md",
"Changelog" => "https://github.com/kipcole9/money_sql/blob/v#{@version}/CHANGELOG.md"
},
files: [
"lib",
"priv/SQL",
"config",
"mix.exs",
"README.md",
"CHANGELOG.md",
"LICENSE.md"
]
]
end
def application do
[
extra_applications: [:logger]
]
end
def docs do
[
source_ref: "v#{@version}",
extras: ["README.md", "CHANGELOG.md", "LICENSE.md"],
main: "readme",
logo: "logo.png",
skip_undefined_reference_warnings_on: ["CHANGELOG.md", "README.md"],
formatters: ["html"]
]
end
defp aliases do
[
test: ["ecto.drop --quiet", "ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
defp deps do
[
{:ex_money, "~> 5.7"},
{:jason, "~> 1.0"},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ecto, "~> 3.5"},
{:ecto_sql, "~> 3.0"},
{:postgrex, "~> 0.15"},
{:myxql, "~> 0.4", only: :test},
{:benchee, "~> 1.0", optional: true, only: :dev},
{:exprof, "~> 0.2", only: :dev, runtime: false},
{:ex_doc, "~> 0.22", only: [:dev, :test, :release]},
{:earmark, "~> 1.4", only: [:dev, :test, :release]}
]
end
defp elixirc_paths(:test), do: ["lib", "test", "mix", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "mix"]
defp elixirc_paths(_), do: ["lib"]
end