forked from wojtekmach/req
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
47 lines (43 loc) · 1 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
defmodule Req.MixProject do
use Mix.Project
def project do
[
app: :req,
version: "0.1.0-dev",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs()
]
end
def application do
[
mod: {Req.Application, []},
extra_applications: [:logger]
]
end
defp deps do
[
{:finch, "~> 0.6.0"},
{:mint, github: "elixir-mint/mint", override: true},
{:mime, "~> 1.6"},
{:jason, "~> 1.0"},
{:bypass, "~> 2.1", only: :test},
{:ex_doc, ">= 0.0.0", only: :docs}
]
end
defp docs do
[
main: "Req",
source_url: "https://github.com/wojtekmach/req",
source_ref: "master",
groups_for_functions: [
"High-level API": &(&1[:api] == :high_level),
"Low-level API": &(&1[:api] == :low_level),
"Request steps": &(&1[:api] == :request),
"Response steps": &(&1[:api] == :response),
"Error steps": &(&1[:api] == :error)
]
]
end
end