defmodule Link.MixProject do use Mix.Project def project do [ app: :link, description: "Link parsing, compacting and shortening functions to keep URLs brief.", version: "1.0.2", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), aliases: aliases(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [ c: :test, coveralls: :test, "coveralls.detail": :test, "coveralls.json": :test, "coveralls.html": :test ] ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end defp aliases do [ c: ["coveralls.html"] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ # Keep Code Tidy: https://github.com/rrrene/credo {:credo, "~> 1.7.0", only: [:dev, :test], runtime: false}, # track test coverage: https://github.com/parroty/excoveralls {:excoveralls, "~> 0.16.0", only: [:test, :dev]}, # Create Documentation Hex.docs: https://hex.pm/packages/ex_doc {:ex_doc, "~> 0.30.3", only: :dev}, # Git pre-commit hook: https://github.com/dwyl/elixir-pre-commit {:pre_commit, "~> 0.3.4", only: :dev}, # Plug helper functions: github.com/elixir-plug/plug {:plug, "~> 1.10", only: [:dev, :test]}, # Parse the sample_urls.csv file: github.com/dashbitco/nimble_csv {:nimble_csv, "~> 1.1", only: [:test, :dev]} ] end #  package info for publishing to Hex.pm defp package() do [ files: ~w(lib LICENSE mix.exs README.md), name: "link", licenses: ["GPL-2.0-or-later"], maintainers: ["dwyl"], links: %{"GitHub" => "https://github.com/dwyl/link"} ] end end