-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
86 lines (77 loc) · 2.07 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
defmodule SayCheezEx.MixProject do
use Mix.Project
@source_url "https://github.com/l3nz/say_cheez_ex"
@version "0.3.6"
def project do
[
app: :say_cheez_ex,
version: @version,
description: "Captures the environment 📸 at build time and embeds graphs in ExDocs",
package: package(),
dialyzer: dialyzer(),
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:ssl, :inets, :crypto]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:mimic, "~> 1.7", only: :test},
{:propcheck, "~> 1.4", only: [:test, :dev]}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
defp package do
[
maintainers: ["lenz"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url},
files: ~w(.formatter.exs mix.exs README.md CHANGELOG.md lib)
]
end
# We have to add Mix in
defp dialyzer do
[
plt_add_apps: [:mix],
plt_add_deps: [:mix]
]
end
defp docs do
[
# The main page in the docs, è il nome lowercase di una pagina
main: "readme",
source_url: @source_url,
extras: ["README.md", "CHANGELOG.md"],
authors: ["LE"],
formatters: ["html"],
before_closing_body_tag: fn
:html ->
"""
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad: true})</script>
"""
_ ->
""
end
]
end
defp aliases do
[
setup: ["cmd rm -rf ./_build", "clean", "deps.get"],
check: ["format", "credo", "dialyzer"]
]
end
end