-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
101 lines (92 loc) · 2.4 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
101
defmodule Indexed.MixProject do
use Mix.Project
@source_url "https://github.com/djthread/indexed"
@version "0.3.4"
def project do
[
app: :indexed,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
ci: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
dialyzer: :test
],
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix, :ex_unit],
ignore: ".dialyzer_ignore.exs"
],
# Docs
name: "Indexed",
source_url: "https://github.com/djthread/indexed",
homepage_url: "https://github.com/djthread/indexed",
docs: [
main: "Indexed",
extras: ["README.md"]
]
]
end
def application do
[
extra_applications: [:logger, :phoenix_pubsub]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ecto_sql, "~> 3.3", optional: true},
{:excoveralls, "~> 0.14", only: :test},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:paginator, "~> 1.0", optional: true},
{:phoenix_pubsub, "~> 2.0", optional: true},
{:postgrex, "~> 0.15", only: [:test]}
]
end
defp aliases do
[
ci: ["lint", "coveralls", "dialyzer"],
lint: [
"compile --warnings-as-errors",
"format --check-formatted",
"credo"
]
]
end
defp package do
[
description: "Manage and Paginate records in ETS.",
files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md),
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/indexed/changelog.html",
"GitHub" => @source_url
}
]
end
def docs do
[
extras: [
"CHANGELOG.md": [],
LICENSE: [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
homepage_url: @source_url,
source_url: @source_url,
formatters: ["html"]
]
end
end