Created
July 2, 2023 01:56
-
-
Save axelson/996d2c626baedf1e104af5f8412e420b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule PasswordValidator.Mixfile do | |
use Mix.Project | |
@source_url "https://github.com/axelson/password-validator" | |
@version "0.5.0" | |
def project do | |
[ | |
app: :password_validator, | |
name: "Password Validator", | |
version: @version, | |
elixir: "~> 1.7", | |
build_embedded: Mix.env() == :prod, | |
start_permanent: Mix.env() == :prod, | |
package: package(), | |
deps: deps(), | |
docs: docs(), | |
source_url: @source_url, | |
dialyzer: [flags: ["-Wunmatched_returns", :error_handling, :race_conditions]] | |
] | |
end | |
def application do | |
[extra_applications: [:logger]] | |
end | |
def package do | |
[ | |
description: | |
"A library to validate passwords, with built-in validators for password " <> | |
"length as well as the character sets used. Custom validators can also be created.", | |
name: :password_validator, | |
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG*.md"], | |
maintainers: ["Jason Axelson"], | |
licenses: ["Apache-2.0"], | |
links: %{ | |
"Changelog" => "https://hexdocs.pm/password_validator/changelog.html", | |
"GitHub" => @source_url | |
} | |
] | |
end | |
defp deps do | |
[ | |
{:mix_machine, "~> 0.1.0", only: [:test]}, | |
{:ecto, "~> 2.1 or ~> 3.0"}, | |
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, | |
{:credo, "~> 1.1", only: [:dev, :test], runtime: false}, | |
{:docception, "~> 0.4.1", only: [:test]}, | |
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false} | |
] | |
end | |
defp docs do | |
[ | |
extras: [ | |
"CHANGELOG.md": [], | |
"LICENSE.md": [title: "License"], | |
"README.md": [title: "Overview"] | |
], | |
main: "readme", | |
canonical: "https://hexdocs.pm/password_validator", | |
source_ref: "v#{@version}", | |
homepage_url: @source_url, | |
formatters: ["html"], | |
nest_modules_by_prefix: [PasswordValidator.Validators] | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment