-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
89 lines (82 loc) · 2.21 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 Iter.MixProject do
use Mix.Project
@moduledoc """
Lazy, external iterators for Elixir.
"""
@version "0.1.2"
def project do
[
app: :iterex,
version: @version,
description: @moduledoc,
elixir: "~> 1.16",
consolidate_protocols: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
source_url: "https://github.com/ash-project/iterex",
homepage_url: "https://github.com/ash-project/iterex"
]
end
def package do
[
name: :iterex,
licenses: ["MIT"],
files: ~w[lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*],
maintainers: [
"James Harton <[email protected]>",
"Zach Daniel <[email protected]>"
],
links: %{
GitHub: "https://github.com/ash-project/iterex",
Discord: "https://discord.gg/HTHRaaVPUc",
Sponsor: "https://github.com/sponsors/jimsynz"
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp docs do
[
main: "readme",
formatters: ["html"],
extras: ["README.md"],
logo: "logos/iterex-logo-small.png",
before_closing_head_tag: fn type ->
if type == :html do
"""
<script>
if (location.hostname === "hexdocs.pm") {
var script = document.createElement("script");
script.src = "https://plausible.io/js/script.js";
script.setAttribute("defer", "defer")
script.setAttribute("data-domain", "ashhexdocs")
document.head.appendChild(script);
}
</script>
"""
end
end
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
opts = [only: [:dev, :test], runtime: false]
[
{:credo, "~> 1.7", opts},
{:dialyxir, "~> 1.3", opts},
{:doctor, "~> 0.21", opts},
{:earmark, ">= 0.0.0", opts},
{:ex_check, "~> 0.16", opts},
{:ex_doc, ">= 0.0.0", opts},
{:faker, "~> 0.18", opts},
{:git_ops, "~> 2.6", opts},
{:mix_audit, "~> 2.1", opts}
]
end
end