defmodule InteractiveCmd.MixProject do use Mix.Project @version "0.1.0" @description "Run interactive shell commands on the BEAM" @source_url "https://github.com/fhunleth/interactive_cmd" def project do [ app: :interactive_cmd, version: @version, elixir: "~> 1.16", description: @description, package: package(), source_url: @source_url, docs: docs(), start_permanent: Mix.env() == :prod, dialyzer: [ flags: [:missing_return, :extra_return, :unmatched_returns, :error_handling, :underspecs] ], deps: deps() ] end def cli do [ preferred_envs: %{ dialyzer: :test, docs: :docs, "hex.build": :docs, "hex.publish": :docs, credo: :test } ] end def application do [ extra_applications: [] ] end defp package do %{ files: [ "CHANGELOG.md", "lib", "LICENSES", "mix.exs", "NOTICE", "README.md", "REUSE.toml" ], licenses: ["Apache-2.0"], links: %{ "GitHub" => @source_url, "Changelog" => @source_url <> "/blob/main/CHANGELOG.md", "REUSE Compliance" => "https://api.reuse.software/info/github.com/fhunleth/interactive_cmd" } } end defp docs do [ extras: ["README.md", "CHANGELOG.md"], main: "readme", source_ref: "v#{@version}", source_url: @source_url, assets: %{"demo" => "demo"} ] end defp deps do [ {:ex_doc, "~> 0.27", only: :docs, runtime: false}, {:credo, "~> 1.6", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false} ] end end