forked from swoosh/phoenix_swoosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
67 lines (61 loc) · 1.58 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
64
65
66
67
defmodule PhoenixSwoosh.Mixfile do
use Mix.Project
@source_url "https://github.com/swoosh/phoenix_swoosh"
@version "1.0.0"
def project do
[
app: :phoenix_swoosh,
version: @version,
elixir: "~> 1.10",
name: "Phoenix.Swoosh",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
preferred_cli_env: [docs: :docs]
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:swoosh, "~> 1.5"},
{:phoenix_view, "~> 1.0"},
{:phoenix_html, "~> 3.0", optional: true},
{:hackney, "~> 1.10", optional: true},
{:finch, "~> 0.8", optional: true},
{:phoenix, "~> 1.6", optional: true},
{:credo, "~> 1.0", only: [:dev, :test]},
{:ex_doc, "~> 0.26", only: :docs, runtime: false}
]
end
defp package do
[
description: "Use Swoosh to easily send emails in your Phoenix project.",
maintainers: ["Steve Domin", "Po Chen"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/phoenix_swoosh/changelog.html",
"GitHub" => @source_url
}
]
end
defp docs do
[
extras: [
{:"README.md", [title: "Overview"]},
"CHANGELOG.md",
"CONTRIBUTING.md",
"LICENSE.md": [title: "License"]
],
main: "readme",
canonical: "http://hexdocs.pm/phoenix_swoosh",
source_url: @source_url,
source_ref: "v#{@version}",
api_reference: false,
formatters: ["html"]
]
end
end