forked from Ianleeclark/Paseto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
59 lines (52 loc) · 1.32 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
defmodule Paseto.MixProject do
use Mix.Project
def project do
[
app: :paseto,
version: "1.4.0",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
description: description(),
package: package(),
# Make sure that `testall` always runs under `MIX_ENV=test`
preferred_cli_env: [testall: :test]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:hkdf, "~> 0.2.0"},
{:blake2, "~> 1.0"},
{:libsalty2, "~> 0.3.0"},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:stream_data, "~> 0.5.0", only: :test}
]
end
defp aliases do
[
testall: ["credo", "test"]
]
end
defp elixirc_paths(:test), do: ~w[lib test/support]
defp elixirc_paths(_), do: ~w[lib]
defp description do
"An Elixir implementation of the Paseto (Platform Agnostic Security Token) protocol."
end
defp package do
[
name: "paseto",
files: ["lib", "mix.exs", "README.*", "LICENSE"],
maintainers: ["Ian Lee Clark"],
licenses: ["BSD"],
links: %{"Github" => "https://github.com/ianleeclark/Paseto"}
]
end
end