forked from joken-elixir/joken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
64 lines (57 loc) · 1.61 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
defmodule Joken.Mixfile do
use Mix.Project
@version "1.2.1"
def project do
[app: :joken,
version: @version,
elixir: "~> 1.0",
description: description,
package: package,
deps: deps,
consolidate_protocols: Mix.env != :test,
test_coverage: [tool: ExCoveralls],
name: "Joken",
docs: docs_config]
end
def application do
[applications: [:logger, :crypto, :jose]]
end
defp deps do
[
{:jose, "~> 1.7"},
{:plug, "~> 1.0", optional: true},
{:poison, "~> 1.5 or ~> 2.0", optional: true},
{:earmark, "~> 0.2", only: :docs},
{:ex_doc, "~> 0.11", only: :docs},
{:jsx, "~> 2.0", only: :test},
{:benchfella, "~> 0.3", only: :test},
{:excoveralls, "~> 0.5", only: :test},
{:libdecaf, "~> 0.0", only: :test},
{:libsodium, "~> 0.0", only: :test},
{:keccakf1600, "~> 2.0", only: :test},
{:credo, "~> 0.3", only: [:dev, :test]}
]
end
defp description do
"""
JWT Library for Elixir
"""
end
defp package do
[
files: ["lib", "priv", "mix.exs", "README*", "readme*", "LICENSE*",
"license*", "CHANGELOG*"],
maintainers: ["Bryan Joseph", "Victor Nascimento"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/bryanjos/joken",
"Docs" => "http://hexdocs.pm/joken"}
]
end
defp docs_config do
[extras: ["README.md": [title: "Overview", path: "overview"],
"CHANGELOG.md": [title: "Changelog"]],
main: "overview",
source_ref: "v#{@version}",
source_url: "https://github.com/bryanjos/joken"]
end
end