2017-01-12 08:40:31 +13:00
|
|
|
defmodule Vivid.PNG.Mixfile do
|
2023-07-27 20:08:44 +12:00
|
|
|
@moduledoc false
|
2017-01-12 08:40:31 +13:00
|
|
|
use Mix.Project
|
|
|
|
|
2020-12-28 20:23:39 +13:00
|
|
|
@version "0.2.0"
|
|
|
|
|
2017-01-12 08:40:31 +13:00
|
|
|
def project do
|
2018-09-04 14:52:12 +12:00
|
|
|
[
|
|
|
|
app: :vivid_png,
|
2020-12-28 20:23:39 +13:00
|
|
|
version: @version,
|
2018-09-04 14:52:12 +12:00
|
|
|
description: description(),
|
|
|
|
elixir: "~> 1.3",
|
|
|
|
build_embedded: Mix.env() == :prod,
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
package: package(),
|
2024-03-06 20:02:54 +13:00
|
|
|
deps: deps(),
|
|
|
|
source_url: "https://harton.dev/james/vivid_png",
|
|
|
|
homepage_url: "https://harton.dev/james/vivid_png",
|
|
|
|
docs: [
|
|
|
|
extras: ["README.md", "CHANGELOG.md"]
|
|
|
|
]
|
2018-09-04 14:52:12 +12:00
|
|
|
]
|
2017-01-12 08:40:31 +13:00
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
2020-12-28 20:23:39 +13:00
|
|
|
[extra_applications: [:logger]]
|
2017-01-12 08:40:31 +13:00
|
|
|
end
|
|
|
|
|
|
|
|
def description do
|
|
|
|
"""
|
|
|
|
Generate PNG files with Vivid.
|
|
|
|
"""
|
|
|
|
end
|
|
|
|
|
|
|
|
def package do
|
|
|
|
[
|
2020-12-28 20:23:39 +13:00
|
|
|
maintainers: ["James Harton <james@harton.nz>"],
|
2018-09-04 14:52:12 +12:00
|
|
|
licenses: ["MIT"],
|
2017-01-12 08:40:31 +13:00
|
|
|
links: %{
|
2024-03-06 20:02:54 +13:00
|
|
|
"Source" => "https://harton.dev/james/vivid_png",
|
|
|
|
"GitHub" => "https://github.com/jimsynz/vivid_png",
|
|
|
|
"Changelog" => "https://docs.harton.nz/james/vivid_png/changelog.html",
|
|
|
|
"Sponsor" => "https://github.com/sponsors/jimsynz"
|
2017-01-12 08:40:31 +13:00
|
|
|
}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp deps do
|
2023-07-27 20:08:44 +12:00
|
|
|
devtestopts = [only: ~w[dev test]a, runtime: false]
|
|
|
|
|
2017-01-12 08:40:31 +13:00
|
|
|
[
|
2023-07-27 20:08:44 +12:00
|
|
|
{:credo, "~> 1.6", devtestopts},
|
|
|
|
{:dialyxir, "~> 1.3", devtestopts},
|
|
|
|
{:doctor, "~> 0.21.0", devtestopts},
|
2024-03-01 23:28:42 +13:00
|
|
|
{:ex_check, "~> 0.16.0", devtestopts},
|
2023-07-27 20:08:44 +12:00
|
|
|
{:ex_doc, ">= 0.28.1", devtestopts},
|
|
|
|
{:git_ops, "~> 2.4", devtestopts},
|
|
|
|
{:mix_audit, "~> 2.1", devtestopts},
|
2021-12-08 17:39:27 +13:00
|
|
|
{:png, "~> 0.2"},
|
2018-09-04 14:52:12 +12:00
|
|
|
{:vivid, "~> 0.4"}
|
2017-01-12 08:40:31 +13:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|