Packages

Complete authentication generator for Phoenix 1.8+. Email + password and magic link login, registration, password reset, email confirmation, settings, and scope-based auth — aligned with the Phoenix 1.8.9 phx.gen.auth templates.

Current section

Files

Jump to
Raw

mix.exs

defmodule PhxAuthPlus.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/afortin/phx_auth_plus"
def project do
[
app: :phx_auth_plus,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
deps: deps(),
docs: docs(),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[]
end
defp description do
"Complete email + password authentication generator for Phoenix 1.8+. " <>
"Restores the full phx.gen.auth experience (registration, login, password reset, " <>
"email confirmation, settings) that Phoenix 1.8 replaced with magic links only."
end
defp deps do
[
{:igniter, "~> 0.7"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp package do
[
name: :phx_auth_plus,
files: ~w(lib mix.exs README.md LICENSE.md CHANGELOG.md .formatter.exs),
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"HexDocs" => "https://hexdocs.pm/phx_auth_plus",
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md"
},
maintainers: ["afortin"],
exclude_patterns: ["_build", "deps", "test", ".elixir_ls"]
]
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
end