forked from mroth/exmoji
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
70 lines (62 loc) · 1.45 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
defmodule Exmoji.Mixfile do
use Mix.Project
@source_url "https://github.com/fogbender/exmoji"
@version "0.3.2"
def project do
[
app: :exmoji_fogbender,
version: @version,
elixir: "~> 1.4",
test_coverage: [tool: ExCoveralls],
name: "Exmoji",
deps: deps(),
docs: docs(),
package: package(),
aliases: aliases()
]
end
defp package do
[
description: "Emoji encoding swiss army knife for dealing with Unicode "
<> "and other gotchas.",
maintainers: ["Matthew Rothenberg <[email protected]>"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url
}
]
end
def application do
[]
end
defp deps do
[
{:jason, "~> 1.4"},
{:excoveralls, "~> 0.6", only: :dev},
{:benchfella, "~> 0.3", only: :dev},
{:earmark, "~> 1.1", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp aliases do
[
clean: ["clean", &clean_docs/1, &clean_benchmarks/1],
"clean.docs": [&clean_docs/1],
"clean.bench": [&clean_benchmarks/1]
]
end
defp clean_benchmarks(_), do: File.rm_rf!("bench/snapshots")
defp clean_docs(_), do: File.rm_rf!("doc")
end