-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
58 lines (50 loc) · 1.11 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
defmodule TeslaCacher.MixProject do
use Mix.Project
@version "0.4.0"
@description "A Basic Cache Middleware for Tesla backed by Redis."
@repo_url "https://github.com/OldhamMade/TeslaCacher"
def project do
[
app: :tesla_cacher,
version: @version,
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
package: package(),
description: @description,
# Docs
name: "TeslaCacher",
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp package() do
[
maintainers: ["Phillip Oldham"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => @repo_url},
files: ~w(lib .formatter.exs mix.exs *.md LICENSE)
]
end
defp deps do
[
{:tesla, "~> 1.3"},
{:redix, "~> 1.0"},
{:ex_doc, "~> 0.22", only: :dev, runtime: false}
]
end
defp docs() do
[
main: "Tesla.Middleware.Cacher",
api_reference: false,
source_ref: "v#{@version}",
source_url: @repo_url,
]
end
end