-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
55 lines (48 loc) · 1.2 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
defmodule Formex.Validator.Vex.Mixfile do
use Mix.Project
def project do
[
app: :formex_vex,
version: "0.1.1",
elixir: "~> 1.3",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: description(),
docs: [main: "readme", extras: ["README.md"]],
source_url: "https://github.com/jakub-zawislak/formex_vex",
elixirc_paths: elixirc_paths(Mix.env())
]
end
def application do
[]
end
defp deps do
deps = [
{:vex, "~> 0.6.0"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:credo, "~> 0.9", only: [:dev, :test], runtime: false}
]
if !System.get_env("FORMEX_DEV") do
deps ++ [{:formex, ">= 0.5.0 and < 0.7.0"}]
else
deps
end
end
defp description do
"""
Vex validator adapter for Formex
"""
end
defp package do
[
maintainers: ["Jakub Zawiślak"],
licenses: ["MIT"],
files: ~w(lib LICENSE.md mix.exs README.md),
links: %{github: "https://github.com/jakub-zawislak/formex_vex"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end