Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Kota.MixProject do
use Mix.Project
@version "0.1.2"
@repo "https://github.com/lud/kota"
@changelog "#{@repo}/blob/main/CHANGELOG.md"
def project do
[
app: :kota,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
description: "A GenServer based rate limiter",
package: package(),
dialyzer: dialyzer(),
source_url: @repo
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_check, "~> 0.16.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
name: "kota",
licenses: ["MIT"],
links: %{"Github" => @repo, "Changelog" => @changelog}
]
end
defp dialyzer do
[
flags: [:unmatched_returns, :error_handling, :unknown, :extra_return],
list_unused_filters: true,
plt_add_apps: [:ex_unit],
plt_local_path: "_build/plts"
]
end
def cli do
[
preferred_envs: [dialyzer: :test]
]
end
end