Current section
Files
Jump to
Current section
Files
mix.exs
defmodule ImgProxy.MixProject do
use Mix.Project
@source_url "https://github.com/bmuller/imgproxy"
@version "3.1.0"
def project do
[
app: :imgproxy,
aliases: aliases(),
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
description: "imgproxy URL generator and helper functions",
deps: deps(),
package: package(),
source_url: @source_url,
docs: docs(),
dialyzer: [plt_add_apps: [:mix]]
]
end
def cli do
[preferred_envs: [test: :test, "ci.test": :test]]
end
defp docs do
[
extras: [
"CHANGELOG.md": [],
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
extra_section: "GUIDES",
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp aliases do
[
"ci.test": [
"format --check-formatted",
"test",
"credo"
]
]
end
def package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Brian Muller"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/imgproxy/changelog.html",
"GitHub" => @source_url,
"imgproxy Site" => "https://imgproxy.net"
}
]
end
def application do
[
extra_applications: [:crypto, :logger]
]
end
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: :dev, runtime: false}
]
end
end