forked from PSPDFKit-labs/bypass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
77 lines (69 loc) · 1.7 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
68
69
70
71
72
73
74
75
76
77
defmodule Bypass.Mixfile do
use Mix.Project
@version "2.1.0"
@source_url "https://github.com/PSPDFKit-labs/bypass"
def project do
[
app: :bypass,
version: @version,
elixir: "~> 1.7",
description: description(),
package: package(),
deps: deps(),
docs: docs(),
dialyzer: [
plt_add_apps: [:ex_unit]
]
]
end
def application do
[
extra_applications: [:logger],
mod: {Bypass.Application, []},
env: env()
]
end
defp deps do
[
{:plug_cowboy, "~> 2.0"},
{:plug, "~> 1.7"},
{:ranch, "~> 1.8"},
{:ex_doc, "> 0.0.0", only: :dev},
{:espec, "~> 1.6", only: [:dev, :test]},
{:mint, "~> 1.1", only: :test},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false}
]
end
defp env do
[enable_debug_log: false]
end
defp docs do
[
main: "Bypass",
api_reference: false,
source_url: @source_url,
source_ref: "v#{@version}",
extras: ["CHANGELOG.md"]
]
end
defp description do
"""
Bypass provides a quick way to create a custom plug that can be put in place instead of an
actual HTTP server to return prebaked responses to client requests. This is helpful when you
want to create a mock HTTP server and test how your HTTP client handles different types of
server responses.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "CHANGELOG.md", "LICENSE"],
maintainers: ["PSPDFKit"],
licenses: ["MIT"],
links: %{
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
"GitHub" => @source_url,
"PSPDFKit" => "https://pspdfkit.com"
}
]
end
end