-
Notifications
You must be signed in to change notification settings - Fork 12
/
mix.exs
64 lines (56 loc) · 1.42 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
defmodule SwooshGallery.MixProject do
use Mix.Project
@version "0.2.0"
def project do
[
app: :swoosh_gallery,
version: @version,
description: "Preview and display your Swoosh mailers to everyone",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
dialyzer: dialyzer(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger, :eex]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:plug_cowboy, ">= 1.0.0"},
{:swoosh, "~> 1.5"},
{:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false},
{:hackney, "~> 1.9", only: [:test]},
{:tailwind, "~> 0.1", only: [:dev, :test]},
{:dialyxir, "~> 1.4.1", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
main: "Swoosh.Gallery",
source_ref: "v#{@version}",
source_url: "https://github.com/remoteoss/swoosh_gallery"
]
end
defp package do
[
maintainers: ["Remote"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/remoteoss/swoosh_gallery"}
]
end
defp dialyzer do
[
plt_add_apps: [:mix],
plt_file:
{:no_warn, ".dialyzer/elixir-#{System.version()}-erlang-otp-#{System.otp_release()}.plt"}
]
end
end