# SPDX-FileCopyrightText: AlphaKeks # SPDX-License-Identifier: GPL-2.0-or-later # # This is free software: you can redistribute it and/or modify it under the # terms of the GNU Affero General Public License as published by the FSF. # # This is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. # See the GNU Affero General Public License for more details. # # You can find a copy of the GNU Affero General Public License in the # `LICENSE.txt` file at the root of the repository. # It is also available online at . defmodule SteamID.MixProject do @moduledoc false use Mix.Project @app :steamid @vsn "0.5.1" @description ~S""" A struct and functions for working with Valve's SteamID format. """ @src_url "https://git.sr.ht/~alphakeks/steamid.ex" def project do [ app: @app, version: @vsn, description: @description, elixir: "~> 1.20", elixirc_paths: elixirc_paths(Mix.env()), consolidate_protocols: Mix.env() == :prod, start_permanent: Mix.env() == :prod, package: package(), aliases: aliases(), deps: deps(), docs: &docs/0, dialyzer: [ plt_add_apps: [:mix, :ex_unit], plt_core_path: "priv/plts", plt_file: {:no_warn, "priv/plts/dialyzer.plt"} ] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp package do [ maintainers: [ "AlphaKeks " ], licenses: ["GPL-2.0-or-later"], links: %{ "Source" => @src_url }, source_url: @src_url, files: ~w[README* LICENSE* .formatter.exs mix.exs lib] ] end defp aliases do [ check: ["compile --warnings-as-errors", "credo --strict", "dialyzer"], setup: ["deps.get", "deps.compile"] ] end defp deps do [ {:ash, "~> 3.0", optional: true}, {:credo, "~> 1.6", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false}, {:ecto, "~> 3.0", optional: true}, {:ex_doc, "~> 0.40", only: [:dev, :test], runtime: false}, {:nimble_options, "~> 1.0"} ] end defp docs do [ main: "readme", source_ref: "v#{@vsn}", extras: [ {"README.md", name: "Home"}, {"LICENSE.txt", name: "License"} ], source_url_pattern: "#{@src_url}/tree/v#{@vsn}/%{path}#L%{line}" ] end end