-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
75 lines (69 loc) · 2.24 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
defmodule Expublish.MixProject do
use Mix.Project
@description "Automates semantic release versioning and best practices for elixir packages."
@source_url "https://github.com/ucwaldo/expublish"
@hexdocs_url "https://hexdocs.pm/expublish"
def project do
[
app: :expublish,
version: "2.7.6",
package: package(),
description: @description,
source_url: @source_url,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
source_ref: "master",
main: "readme",
extras: [
"README.md",
"CHANGELOG.md": [filename: "changelog", title: "Changelog"],
"docs/INSTALLATION.md": [filename: "installation", title: "Installation"],
"docs/CHEATSHEET.md": [filename: "cheatsheet", title: "Cheatsheet"],
"docs/VERSION_LEVELS.md": [filename: "version_levels", title: "Version levels"],
"docs/REFERENCE.md": [filename: "reference", title: "Reference"]
]
],
dialyzer: [
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url,
"Changelog" => @hexdocs_url <> "/changelog.html",
"Installation" => @hexdocs_url <> "/installation.html",
"Reference" => @hexdocs_url <> "/reference.html"
}
]
end
def application do
[
extra_applications: [:logger, :mix]
]
end
defp deps do
[
{:ex_doc, "~> 0.14", only: :dev, runtime: false, optional: true},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false, optional: true},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false, optional: true},
{:excoveralls, "~> 0.10", only: [:dev, :test], optional: true},
{:styler, "~> 1.2", only: [:dev, :test], optional: true}
]
end
end