forked from swoosh/phoenix_swoosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
53 lines (44 loc) · 1.25 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
defmodule PhoenixSwoosh.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[app: :phoenix_swoosh,
version: @version,
elixir: "~> 1.2",
compilers: compilers(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
# Hex
description: description(),
package: package(),
# Docs
name: "Phoenix.Swoosh",
docs: [source_ref: "v#{@version}", main: "Phoenix.Swoosh",
canonical: "http://hexdocs.pm/phoenix_swoosh",
source_url: "https://github.com/swoosh/phoenix_swoosh"]]
end
defp compilers(:test), do: [:phoenix] ++ Mix.compilers
defp compilers(_), do: Mix.compilers
def application do
[applications: [:logger, :swoosh]]
end
defp deps do
[{:swoosh, "~> 0.1"},
{:phoenix, "~> 1.3.0-rc"},
{:phoenix_html, "~> 2.2"},
{:credo, "~> 0.6", only: [:dev, :test]},
{:ex_doc, "~> 0.14", only: :docs},
{:inch_ex, ">= 0.0.0", only: :docs}]
end
defp description do
"""
Use Swoosh to easily send emails in your Phoenix project.
"""
end
defp package do
[maintainers: ["Steve Domin"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/swoosh/phoenix_swoosh"}]
end
end