-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
69 lines (62 loc) · 1.35 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
defmodule LibPE.MixProject do
use Mix.Project
@version "1.2.3"
@url "https://github.com/elixir-desktop/libpe"
def project do
[
app: :libpe,
name: "LibPE",
version: @version,
source_url: @url,
description: """
Window PE file encoder & decoder
""",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
aliases: aliases()
]
end
def application do
[extra_applications: [:logger, :crypto]]
end
defp deps do
[
{:ex_doc, "~> 0.25", only: :dev, runtime: false},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false}
]
end
defp package do
[
maintainers: ["Dominic Letz"],
licenses: ["MIT"],
links: %{github: @url},
files: ~w(lib LICENSE.md mix.exs README.md)
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_ref: "v#{@version}",
source_url: @url,
formatters: ["html"]
]
end
defp aliases() do
[
lint: [
"compile --warnings-as-errors",
"format --check-formatted",
"credo --ignore refactor",
"dialyzer"
]
]
end
end