Packages
steam_openid
0.1.0
Functions for implementing OpenID 2.0 authentication with Steam as the provider.
Current section
Files
Jump to
Current section
Files
steam_openid
mix.exs
mix.exs
# SPDX-FileCopyrightText: AlphaKeks <alphakeks@dawn.sh>
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This is free software: you can redistribute it and/or modify it under the
# terms of the GNU Affero General Public License as published by the FSF.
#
# This is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.
# See the GNU Affero General Public License for more details.
#
# You can find a copy of the GNU Affero General Public License in the
# `LICENSE.txt` file at the root of the repository.
# It is also available online at <https://www.gnu.org/licenses/gpl-2.0.txt>.
defmodule SteamOpenID.MixProject do
@moduledoc false
use Mix.Project
@app :steam_openid
@vsn "0.1.0"
@description ~S"""
Functions for implementing OpenID 2.0 authentication with Steam as the provider.
"""
@src_url "https://git.sr.ht/~alphakeks/steam_openid.ex"
def project do
[
app: @app,
version: @vsn,
description: @description,
elixir: "~> 1.20",
elixirc_paths: elixirc_paths(Mix.env()),
consolidate_protocols: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
aliases: aliases(),
deps: deps(),
docs: &docs/0,
dialyzer: [
plt_add_apps: [:mix, :ex_unit],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: [
"AlphaKeks <alphakeks@dawn.sh>"
],
licenses: ["GPL-2.0-or-later"],
links: %{
"Source" => @src_url
},
source_url: @src_url,
files: ~w[README* LICENSE* .formatter.exs mix.exs lib]
]
end
defp aliases do
[
check: ["compile --warnings-as-errors", "credo --strict", "dialyzer"],
setup: ["deps.get", "deps.compile"]
]
end
defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.40", only: [:dev, :test], runtime: false},
{:nimble_options, "~> 1.0"},
{:req, "~> 0.7"},
{:steamid, "~> 0.5"}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@vsn}",
extras: [
{"README.md", name: "Home"},
{"LICENSE.txt", name: "License"}
],
source_url_pattern: "#{@src_url}/tree/v#{@vsn}/%{path}#L%{line}"
]
end
end