Packages
joken
2.6.2
2.6.2
2.6.1
2.6.0
2.5.0
2.4.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
2.0.0-rc3
2.0.0-rc2
2.0.0-rc1
2.0.0-rc0
1.5.0
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
0.16.1
0.16.0
0.15.0
0.14.1
0.14.0
0.13.1
0.13.0
0.12.0
0.11.0
0.10.1
0.10.0
0.8.1
0.8.0
0.7.0
0.6.2
0.6.1
0.6.0
0.5.0
0.1.0
JWT (JSON Web Token) library for Elixir.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Joken.Mixfile do
use Mix.Project
@source_url "https://github.com/joken-elixir/joken"
@version "2.6.2"
def project do
[
app: :joken,
version: @version,
name: "Joken",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
description: description(),
package: package(),
deps: deps(),
docs: docs(),
dialyzer: [plt_add_deps: :apps_direct, plt_add_apps: [:jason]],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.github": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:jose, "~> 1.11.10"},
{:jason, "~> 1.4", only: [:dev, :test]},
{:benchee, "~> 1.3", only: :dev},
# Docs
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
# Dialyzer
{:dialyxir, "~> 1.4.0", only: [:dev, :test], runtime: false},
# Credo
{:credo, "~> 1.7", only: :test, runtime: false},
# Test
{:junit_formatter, "~> 3.4", only: :test},
{:stream_data, "~> 1.1", only: :test},
{:excoveralls, "~> 0.18", only: :test},
{:castore, "~> 1.0", only: :test}
]
end
defp description do
"""
JWT (JSON Web Token) library for Elixir.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE.txt", "CHANGELOG.md"],
maintainers: ["Bryan Joseph", "Victor Nascimento"],
licenses: ["Apache-2.0"],
links: %{
"Changelog" => "https://hexdocs.pm/joken/changelog.html",
"GitHub" => @source_url
}
]
end
defp docs do
[
extra_section: "GUIDES",
extras: [
{:"CHANGELOG.md", [title: "Changelog"]},
{:"README.md", [title: "Readme"]},
"guides/introduction.md",
"guides/configuration.md",
"guides/signers.md",
"guides/asymmetric_cryptography_signers.md",
"guides/testing.md",
"guides/common_use_cases.md",
"guides/migration_from_1.md",
"guides/custom_header_arguments.md"
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}"
]
end
end