/
mix.exs
89 lines (78 loc) · 2.1 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
defmodule Bookk.MixProject do
use Mix.Project
@version "0.1.3"
@github "https://github.com/rwillians/bookk"
@description """
Bookk is a simple library that provides building blocks for operating journal
entries and manipulating double-entry bookkeeping accounting ledgers.
"""
def project do
[
app: :bookk,
version: @version,
description: @description,
source_url: @github,
homepage_url: @github,
elixir: ">= 1.14.0",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [debug_info: Mix.env() == :dev],
build_embedded: Mix.env() not in [:dev, :test],
aliases: aliases(),
package: package(),
docs: [
main: "readme",
logo: "assets/hex-logo.png",
source_ref: "v#{@version}",
source_url: @github,
canonical: "http://hexdocs.pm/bookk/",
extras: ["README.md", "LICENSE"]
],
deps: deps(),
dialyzer: [
plt_add_apps: [:mix],
plt_add_deps: :apps_direct
]
]
end
def aliases do
[
"test.perf": ["test test/perf.exs"]
]
end
def application do
[
extra_applications: [:logger]
]
end
def cli do
[
preferred_envs: ["test.perf": :test]
]
end
defp deps do
[
# Performance benchmark
{:benchee, "~> 1.1.0", only: :test, runtime: false, optional: true},
{:benchee_html, "~> 1.0.0", only: :test, runtime: false, optional: true},
# Linter
{:credo, "~> 1.7.0", only: [:dev, :test], runtime: false, optional: true},
{:dialyxir, "~> 1.4.2", only: [:dev, :test], runtime: false, optional: true},
# Docs
{:ex_doc, "~> 0.30.9", only: [:dev, :docs], runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
files: ~w(lib mix.exs .formatter.exs README.md LICENSE),
maintainers: ["Rafael Willians"],
contributors: ["Rafael Willians"],
licenses: ["MIT"],
links: %{
GitHub: @github,
Changelog: "#{@github}/releases"
}
]
end
end