forked from sneako/finch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
66 lines (59 loc) · 1.51 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
defmodule Finch.MixProject do
use Mix.Project
@name "Finch"
@version "0.8.0"
@repo_url "https://github.com/keathley/finch"
def project do
[
app: :finch,
version: @version,
elixir: "~> 1.7",
description: "An HTTP client focused on performance.",
package: package(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: @name,
source_url: @repo_url,
deps: deps()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support/test_usage.ex"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:mint, "~> 1.3"},
{:castore, "~> 0.1"},
{:nimble_pool, "~> 0.2"},
{:nimble_options, "~> 0.3.5"},
{:telemetry, "~> 0.4"},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:credo, "~> 1.3", only: [:dev, :test]},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:bypass, "~> 2.0", only: :test},
{:cowboy, "== 2.7.0", only: [:dev, :test]},
{:plug_cowboy, "~> 2.0", only: [:dev, :test]},
{:x509, "~> 0.8", only: [:dev, :test]}
]
end
def package do
[
licenses: ["MIT"],
links: %{"GitHub" => @repo_url}
]
end
def docs do
[
logo: "assets/Finch_logo_all-White.png",
source_ref: "v#{@version}",
source_url: @repo_url,
main: @name
]
end
end