-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
49 lines (43 loc) · 1.19 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
defmodule RegexSpec.MixProject do
use Mix.Project
def project,
do: [
app: :regex_spec,
version: "0.21.38",
description: "Generated type specifications for regualar expressions at compile time",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
docs: docs(),
package: package(),
start_permanent: Mix.env() == :prod
]
def application,
do: [
extra_applications: [:logger]
]
defp deps,
do: [
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.23", only: [:dev], runtime: false}
]
defp docs,
do: [
main: "Regex.Spec",
extra: ["README.md"]
]
defp package,
do: [
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["J Every"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/devstopfix/regex_spec"
}
]
# Compile verification paths during testing
# to allow Dialyzer to verify the generated specs
defp elixirc_paths(:test), do: ["lib", "test/specs", "test/verify"]
defp elixirc_paths(_), do: ["lib"]
end