defmodule Gitignore.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/ivan-podgurskiy/gitignore" def project do [ app: :gitignore, version: @version, elixir: "~> 1.18", start_permanent: Mix.env() == :prod, deps: deps(), # Hex description: description(), package: package(), # Docs name: "Gitignore", source_url: @source_url, docs: docs(), # Dialyzer dialyzer: [ plt_add_apps: [:ex_unit, :mix], plt_local_path: "priv/plts/local.plt", plt_core_path: "priv/plts/core.plt" ] ] end def application do [ extra_applications: [:logger] ] end defp deps do [ {:stream_data, "~> 1.0", only: [:dev, :test]}, {:ex_doc, "~> 0.34", only: :dev, runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false} ] end defp description do "Correct gitignore and wildmatch semantics for Elixir." end defp docs do [ main: "Gitignore", source_ref: "v#{@version}", source_url: @source_url, extras: ["README.md", "CHANGELOG.md", "LICENSE"] ] end defp package do [ files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md), licenses: ["MIT"], links: %{"GitHub" => @source_url}, maintainers: ["Ivan Podgurskiy"] ] end end