-
Notifications
You must be signed in to change notification settings - Fork 20
/
mix.exs
55 lines (49 loc) · 1.24 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 OK.Mixfile do
use Mix.Project
def project do
[
app: :ok,
version: "2.3.0",
elixir: "~> 1.1",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
docs: [
main: "readme",
source_url: "https://github.com/CrowdHailer/OK",
extras: ["README.md"],
groups_for_functions: [
Guards: & &1[:guard]
]
],
package: package()
]
end
def application do
[applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/integration.ex"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev},
{:dialyxir, "~> 1.0.0-rc.3", only: [:test, :dev], runtime: false}
]
end
defp description do
"""
Elegant error/exception handling in Elixir, with result monads.
"""
end
defp package do
# These are the default files included in the package
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Peter Saxton"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/CrowdHailer/OK"}
]
end
end