-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmix.exs
52 lines (46 loc) · 1.33 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
defmodule PlugCanonicalHost.Mixfile do
use Mix.Project
@version "2.0.3"
def project do
[
app: :plug_canonical_host,
version: @version,
elixir: "~> 1.8",
deps: deps(),
package: package(),
dialyzer: dialyzer(),
name: "Plug Canonical Host",
source_url: "https://github.com/remi/plug_canonical_host",
homepage_url: "https://github.com/remi/plug_canonical_host",
description:
"PlugCanonicalHost ensures that all requests are served by a single canonical host. It will redirect all requests from non-canonical hosts to the canonical one.",
docs: [extras: ["README.md"], main: "readme", source_ref: "v#{@version}", source_url: "https://github.com/remi/plug_canonical_host"]
]
end
def application do
[
applications: [:plug]
]
end
def dialyzer do
[plt_add_apps: [:plug], plt_file: ".plts/.local.plt", plt_core_path: ".plts"]
end
defp deps do
[
{:plug, " ~> 1.0"},
{:credo, "~> 0.10", only: :dev},
{:earmark_parser, "1.4.12", only: :dev},
{:ex_doc, "~> 0.24", only: :dev},
{:dialyxir, "~> 0.5", only: :dev}
]
end
defp package do
%{
maintainers: ["Rémi Prévost"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/remi/plug_canonical_host"
}
}
end
end