forked from wojtekmach/req
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
83 lines (77 loc) · 1.75 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
78
79
80
81
82
83
defmodule Req.MixProject do
use Mix.Project
@version "0.3.6"
@source_url "https://github.com/wojtekmach/req"
def project do
[
app: :req,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
aliases: [
"test.all": ["test --include integration"]
],
preferred_cli_env: [
"test.all": :test,
docs: :docs,
"hex.publish": :docs
],
xref: [
exclude: [
NimbleCSV.RFC4180,
Plug.Test,
:brotli,
:ezstd
]
]
]
end
def application do
[
mod: {Req.Application, []},
extra_applications: [:logger]
]
end
defp package do
[
description: "Req is a batteries-included HTTP client for Elixir.",
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url,
"Changelog" => "https://hexdocs.pm/req/changelog.html"
}
]
end
defp deps do
[
{:finch, "~> 0.9"},
{:mime, "~> 1.6 or ~> 2.0"},
{:jason, "~> 1.0"},
{:nimble_csv, "~> 1.0", optional: true},
{:plug, "~> 1.0", optional: true},
{:brotli, "~> 0.3.1", optional: true},
{:ezstd, "~> 1.0", optional: true},
{:bypass, "~> 2.1", only: :test},
{:ex_doc, ">= 0.0.0", only: :docs}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
groups_for_functions: [
"Request steps": &(&1[:step] == :request),
"Response steps": &(&1[:step] == :response),
"Error steps": &(&1[:step] == :error)
],
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
end