-
Notifications
You must be signed in to change notification settings - Fork 29
/
mix.exs
63 lines (55 loc) · 1.34 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
defmodule Norm.MixProject do
use Mix.Project
@version "0.13.0"
def project do
[
app: :norm,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "Norm",
source_url: "https://github.com/keathley/norm",
docs: docs()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
env: [enable_contracts: true]
]
end
defp deps do
[
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:stream_data, "~> 0.5", optional: true},
{:ex_doc, "~> 0.19", only: [:dev, :test]}
]
end
def description do
"""
Norm is a system for specifying the structure of data. It can be used for
validation and for generation of data. Norm does not provide any set of
predicates and instead allows you to re-use any of your existing
validations.
"""
end
def package do
[
name: "norm",
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/keathley/norm"}
]
end
def docs do
[
source_ref: "v#{@version}",
source_url: "https://github.com/keathley/norm",
main: "Norm"
]
end
end