-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (64 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
defmodule Mine.MixProject do
use Mix.Project
@version "0.3.4"
def get_version, do: @version
def project do
[
app: :mine,
version: @version,
elixir: "~> 1.9",
deps: deps(),
package: package(),
description: description(),
docs: docs(),
source_url: "https://github.com/sgilson/mine",
name: "Mine",
test_coverage: [
tool: ExCoveralls
],
elixirc_paths: ["lib"]
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:excoveralls, "~> 0.12.0", only: :test},
{:ex_doc, "~> 0.21.2", only: :dev},
{:git_hooks, "~> 0.4.1", only: [:test, :dev], runtime: false},
{:benchee, "~> 1.0.1", only: :bench},
{:benchee_markdown, "~> 0.2.3", only: :bench},
{:recase, "~> 0.6"}
]
end
def package do
[
name: :mine,
licenses: ["MIT"],
maintainers: ["Spencer Gilson"],
links: %{
"GitHub" => "https://github.com/sgilson/mine"
}
]
end
def description do
"""
Mine is a lightweight package for defining views for structs. It
aims to eliminate the boilerplate required to write and maintain an
anti-corruption layer between your structs and any external APIs you
interface with.
"""
end
def docs do
[
source_url: "https://github.com/sgilson/mine",
main: "readme",
extras: ["README.md", "CHANGELOG.md"] ++ benchmark_results(),
groups_for_extras: [
Benchmarks: ~r(bench/out)
]
]
end
defp benchmark_results, do: Path.wildcard("bench/out/*.md")
end