-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
54 lines (48 loc) · 1.18 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
defmodule Scrivener.Headers.Mixfile do
use Mix.Project
@source_url "https://github.com/beam-community/scrivener_headers"
def project do
[
app: :scrivener_headers,
version: "3.1.1",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
docs: docs()
]
end
def package do
[
description: "Helpers for paginating API responses with Scrivener and HTTP headers",
maintainers: ["Sean Callan"],
files: ["lib", "mix.exs", "README*", "LICENSE*"],
licenses: ["MIT"],
links: %{
GitHub: @source_url
}
]
end
defp deps do
[
{:plug, "~> 1.12"},
{:scrivener, "~> 2.7"},
# Dev & Test Dependencies
{:credo, "~> 1.5", only: [:dev, :test]},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
formatters: ["html"]
]
end
end