2023-06-29 15:20:23 -04:00
|
|
|
defmodule TypeID.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
2023-07-16 11:01:51 -04:00
|
|
|
@version "0.5.0"
|
2023-07-06 12:55:09 -04:00
|
|
|
|
2023-06-29 15:20:23 -04:00
|
|
|
def project do
|
|
|
|
[
|
2023-06-30 07:03:50 -04:00
|
|
|
app: :typeid_elixir,
|
2023-07-06 12:55:09 -04:00
|
|
|
version: @version,
|
2023-07-06 16:19:01 -04:00
|
|
|
elixir: "~> 1.11",
|
2023-06-29 15:20:23 -04:00
|
|
|
start_permanent: Mix.env() == :prod,
|
2023-06-30 07:03:50 -04:00
|
|
|
description: description(),
|
|
|
|
package: package(),
|
|
|
|
deps: deps(),
|
|
|
|
name: "TypeID Elixir",
|
2023-07-06 12:55:09 -04:00
|
|
|
source_url: "https://github.com/sloanelybutsurely/typeid-elixir",
|
2023-07-07 14:38:26 -04:00
|
|
|
docs: docs(),
|
|
|
|
consolidate_protocols: Mix.env() != :test
|
2023-06-29 15:20:23 -04:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
2023-06-30 07:03:50 -04:00
|
|
|
[extra_applications: [:logger]]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp description do
|
|
|
|
"A type-safe, K-sortable, globally unique identifier inspired by Stripe IDs"
|
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
2023-06-29 15:20:23 -04:00
|
|
|
[
|
2023-06-30 07:03:50 -04:00
|
|
|
licenses: ["MIT"],
|
|
|
|
links: %{"GitHub" => "https://github.com/sloanelybutsurely/typeid-elixir"}
|
2023-06-29 15:20:23 -04:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2023-07-06 12:55:09 -04:00
|
|
|
defp docs do
|
|
|
|
[
|
|
|
|
main: "TypeID",
|
|
|
|
extras: ["CHANGELOG.md"]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2023-06-29 15:20:23 -04:00
|
|
|
defp deps do
|
|
|
|
[
|
2023-07-07 09:00:51 -04:00
|
|
|
{:ecto, "~> 3.10", only: [:dev, :test], optional: true},
|
2023-07-07 13:26:25 -04:00
|
|
|
{:phoenix_html, "~> 3.3", only: [:dev, :test], optional: true},
|
|
|
|
{:phoenix, "~> 1.7", only: [:dev, :test], optional: true},
|
2023-07-07 14:38:26 -04:00
|
|
|
{:jason, "~> 1.4", only: [:dev, :test], optional: true},
|
2023-07-02 08:13:02 -04:00
|
|
|
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
|
|
|
|
{:yaml_elixir, "~> 2.9", only: [:dev, :test], runtime: false}
|
2023-06-29 15:20:23 -04:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|