Packages

GetHost: A cross-platform Elixir library for retrieving the fully qualified hostname of a system.

Current section

Files

Jump to
get_host mix.exs
Raw

mix.exs

defmodule GetHost.MixProject do
use Mix.Project
@source_url "https://github.com/zacky1972/get_host"
def project do
[
app: :get_host,
version: "1.0.2",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "GetHost",
source_url: @source_url,
docs: &docs/0,
# Hex
description: description(),
package: package(),
aliases: aliases(),
dialyzer: dialyzer()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
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
[
{:nstandard, "~> 0.1"},
{:igniter, "~> 0.6", only: [:dev, :test]},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:spellweaver, "~> 0.1", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
main: "GetHost",
extras: ["README.md", "LICENSE.md", "CHANGELOG.md"]
]
end
defp description do
"GetHost: A cross-platform Elixir library for retrieving the fully qualified hostname of a system."
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
end