-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmix.exs
More file actions
63 lines (52 loc) · 1.33 KB
/
mix.exs
File metadata and controls
63 lines (52 loc) · 1.33 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
defmodule Echo.Mixfile do
use Mix.Project
def project do
[
app: :echo,
version: "0.2.0",
elixir: "~> 1.2.0",
elixirc_paths: elixirc_paths(Mix.env),
description: description,
package: package,
deps: deps
]
end
def application do
[applications: applications(Mix.env)]
end
#
# Private
#
# Specifies which paths to compile per environment
defp elixirc_paths(:test), do: ["test/support"] ++ elixirc_paths(:prod)
defp elixirc_paths(_), do: ["lib"]
defp applications(:test) do
[:logger] ++ applications(:prod)
end
defp applications(_) do
[]
end
defp deps do
[
{:ex_doc, ">=0.1.0", only: [:dev, :test]},
{:earmark, ">= 0.0.0", only: [:dev, :test]},
{:mailman, "~> 0.2.0", only: [:test]},
{:eiconv, github: "zotonic/eiconv", only: [:test]}
]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Zachary Moshansky"],
licenses: ["BSD 3-Clause"],
links: %{"GitHub" => "https://github.com/zmoshansky/echo"}
]
end
defp description do
"""
A simple & highly extendable, meta-notification system; Echo checks
notification preferences & dispatch notifications to different adapters
(ex. email, logger, analytics, sms, etc.)
"""
end
end