defmodule AshWeight.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/sephianl/ash_weight" def project do [ app: :ash_weight, version: @version, elixir: "~> 1.15", start_permanent: Mix.env() == :prod, description: description(), package: package(), docs: docs(), deps: deps() ] end def application do [ extra_applications: [:logger] ] end defp deps do [ {:ash, "~> 3.0"}, {:decimal, ">= 2.0.0 and < 4.0.0"}, {:ex_doc, "~> 0.34", only: :dev, runtime: false} ] end defp description do "A metric weight Ash.Type. Stored canonically as integer milligrams, with " <> "ergonomic conversions to grams and kilograms." end defp package do [ name: "ash_weight", licenses: ["MIT"], links: %{"GitHub" => @source_url}, files: ~w(lib mix.exs README.md CHANGELOG.md LICENSE) ] end defp docs do [ main: "readme", source_url: @source_url, source_ref: "v#{@version}", extras: ["README.md", "CHANGELOG.md"] ] end end