defmodule Domainatrex.Mixfile do use Mix.Project def project do [ app: :domainatrex, version: "3.0.5", elixir: "~> 1.14", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, package: package(), deps: deps(), # versioning versioning: [ annotate: true, annotation: "new version %s", commit_msg: "new version %s", tag_prefix: "v" ], # docs name: "Domainatrex", description: description(), source_url: "https://github.com/Zensavona/domainatrex", docs: docs() ] end def application do [extra_applications: [:logger, :inets, :ssl]] end defp deps do [ {:ex_doc, "~> 0.38", only: [:dev]}, {:ex_check, "~> 0.16", only: [:dev], runtime: false}, {:mix_version, "~> 2.4", only: [:dev, :test], runtime: false} ] end defp package do [ licenses: ["MIT"], keywords: ["Elixir", "Domain", "TLD", "Public Suffix"], maintainers: [ "Zen Savona", "Filip Vavera " ], links: %{ "GitHub" => "https://github.com/zensavona/domainatrex", "Public Suffix List" => "https://publicsuffix.org/list/" } ] end defp description do """ Domain / TLD parsing library for Elixir, using the Public Suffix List. """ end defp docs do [ main: "overview", api_reference: false, formatters: ["html"], extra_section: "Pages", extras: [ "README.md": [filename: "overview", title: "Overview"], "CHANGELOG.md": [filename: "changelog", title: "Changelog"] ], source_ref: "master" ] end end