forked from elixir-unicode/unicode_guards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
89 lines (80 loc) · 2.11 KB
/
mix.exs
File metadata and controls
89 lines (80 loc) · 2.11 KB
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
87
88
89
defmodule Unicode.Guards.MixProject do
use Mix.Project
@version "1.0.0"
def project do
[
app: :unicode_guards,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
docs: docs(),
name: "Unicode function guards for Elixir",
source_url: "https://github.com/elixir-unicode/unicode_guards",
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env())
]
end
defp description do
"""
Implementation of Unicode Set-based guards for Elixir. Supports matching
unicode sets to codepoints that can be used in function guards.
"""
end
defp package do
[
maintainers: ["Kip Cole"],
licenses: ["Apache 2.0"],
logo: "logo.png",
links: links(),
files: [
"lib",
"logo.png",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:unicode_set, "~> 1.0"},
{:nimble_parsec, "~> 0.5 or ~> 1.0", runtime: false},
{:benchee, "~> 1.0", only: :dev, runtime: false, optional: true},
{:ex_doc, "~> 0.19", only: [:dev, :release], optional: true, runtime: false},
{:dialyxir, "~> 1.1", only: [:dev], runtime: false, optional: true}
]
end
def links do
%{
"GitHub" => "https://github.com/elixir-unicode/unicode_guards",
"Readme" => "https://github.com/elixir-unicode/unicode_guards/blob/v#{@version}/README.md",
"Changelog" =>
"https://github.com/elixir-unicode/unicode_guards/blob/v#{@version}/CHANGELOG.md"
}
end
def docs do
[
source_ref: "v#{@version}",
main: "readme",
logo: "logo.png",
extras: [
"README.md",
"LICENSE.md",
"CHANGELOG.md"
],
skip_undefined_reference_warnings_on: ["changelog"]
]
end
defp elixirc_paths(:test), do: ["lib", "test"]
defp elixirc_paths(:dev), do: ["lib", "bench"]
defp elixirc_paths(_), do: ["lib"]
end