defmodule BinaryExtendedGcd.MixProject do use Mix.Project def project do [ app: :binary_extended_gcd, version: "1.0.1", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, deps: deps(), name: "Binary extended gcd", description: "A fast implementation of the binary extended GCD algorithm for Elixir.", docs: docs(), package: package(), aliases: aliases(), dialyzer: dialyzer() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end def docs do [ main: "readme", extras: ["README.md", "LICENSE.md", "CHANGELOG.md"], before_closing_head_tag: &before_closing_head_tag/1, before_closing_body_tag: &before_closing_body_tag/1 ] end defp before_closing_head_tag(:html) do """ """ end defp before_closing_head_tag(:epub), do: "" defp before_closing_body_tag(:html) do """ """ end defp before_closing_body_tag(:epub), do: "" def package do [ name: :binary_extended_gcd, licenses: ["Apache-2.0"], links: %{"GitHub" => "https://github.com/zacky1972/binary_extended_gcd"} ] end def aliases do [ check: [ "hex.audit", "compile --warnings-as-errors --force", "format --check-formatted", "credo", "deps.unlock --check-unused", "spellweaver.check", "dialyzer" ] ] end def dialyzer do [ plt_add_apps: [:mix], ignore_warnings: ".dialyzer_ignore.exs" ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:common_twos, "~> 1.0"}, {:nstandard, "~> 0.1"}, {:ex_doc, "~> 0.31", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:spellweaver, "~> 0.1", only: [:dev, :test], runtime: false} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} ] end end