defmodule NLdoc.Validation.MixProject do use Mix.Project @name "NLdoc.Validation" @source_url "https://gitlab.com/toegang-voor-iedereen/backend/lib/nldoc_validation" def project do [ app: :nldoc_validation, version: "2.3.7", elixir: "~> 1.17", start_permanent: Mix.env() == :prod, deps: deps(), elixirc_paths: elixirc_paths(Mix.env()), elixirc_options: [warnings_as_errors: true], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "coveralls.cobertura": :test ], test_coverage: [tool: ExCoveralls], # Docs and publishing name: @name, source_url: @source_url, description: "WCAG validator for the NLdoc specification.", docs: &docs/0, package: [ licenses: ["EUPL-1.2"], links: %{ "EUPL-1.2 License" => "https://joinup.ec.europa.eu/software/page/eupl", "Source" => @source_url } ] ] end defp docs do [ extras: ["README.md", "CHANGELOG.md"] ] end def elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:nldoc_spec, "~> 1.2"}, # Testing: coverage, JUnit-style test reports for CI, mocking and snapshot testing. {:nldoc_test, "~> 3.0", only: :test}, {:excoveralls, "~> 0.18", only: :test}, {:mimic, "~> 1.10", only: :test}, # Linting & do {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, # Dependency auditing {:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false}, # Docs {:ex_doc, "~> 0.37", only: :dev, runtime: false} ] end end