Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Ironman.MixProject do
use Mix.Project
def project do
[
app: :ironman,
version: "1.0.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
source_url: "https://github.com/TheFirstAvenger/ironman",
description: description(),
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [
warnings_as_errors: true
],
dialyzer: [
ignore_warnings: ".dialyzer_ignore.exs",
list_unused_filters: true,
plt_file: {:no_warn, "priv/plts/ironman.plt"},
plt_add_apps: [:mix]
],
test_coverage: [tool: ExCoveralls]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :inets]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:git_hooks, "~> 0.6", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.2", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:mox, "~> 1.1", only: :test},
{:styler, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/TheFirstAvenger/ironman"},
files: ["deps/credo/.credo.exs", "lib", "priv", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"]
]
end
defp description do
"Automated project configuration with Elixir best practices. Simply run 'mix archive.install hex ironman' once, then in your project run 'mix suit_up'."
end
end