-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmix.exs
72 lines (66 loc) · 1.59 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
defmodule Metatags.Mixfile do
use Mix.Project
@version "0.5.0"
@description """
Metatags provides an easy to work with API to set default and
page specific metatags on a page.
"""
def project do
[
app: :metatags,
version: @version,
elixir: "~> 1.10",
deps: deps(),
description: @description,
package: package(),
test_coverage: [
tool: ExCoveralls
],
dialyzer: [
plt_add_apps: [:mix],
plt_add_deps: :app_tree,
ignore_warnings: ".dialyzer_ignore.exs"
],
preferred_cli_env: [
credo: :test,
dialyzer: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
docs: docs()
]
end
defp deps do
[
{:phoenix_html, ">= 3.1.0"},
{:plug, "~> 1.0"},
{:ex_doc, "~> 0.16", only: :dev},
{:credo, ">= 0.0.0", only: :test, runtime: false},
{:excoveralls, ">= 0.0.0", only: :test, runtime: false},
{:dialyxir, "~> 1.0", only: :test, runtime: false}
]
end
defp package do
[
name: :metatags,
description: @description,
files: ["lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md"],
maintainers: ["johan Tell"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/johantell/metatags"}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"CHANGELOG.md"
],
source_ref: "v#{@version}",
source_url: "https://github.com/johantell/metatags"
]
end
end