defmodule Buffy.MixProject do use Mix.Project def project do [ app: :buffy, name: "Buffy", description: "Buffy the Process Slayer", version: "2.3.0", elixir: "~> 1.11", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), package: package(), source_url: "https://github.com/stordco/buffy", test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.html": :test, "coveralls.circle": :test ] ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {Buffy.Application, []} ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Run "mix help deps" to learn about dependencies. defp deps do [ {:telemetry, ">= 1.0.0"}, # Dev & Test dependencies {:benchee, "~> 1.0", only: [:dev, :test]}, {:credo, "~> 1.6", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false}, {:doctor, "~> 0.21.0", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.17.1", only: :test}, {:ex_doc, "~> 0.28", only: [:dev, :test], runtime: false}, {:patch, "~> 0.12.0", only: [:dev, :test], runtime: false}, {:stream_data, "~> 0.6.0", only: [:dev, :test], runtime: false} ] end defp package do [ files: ~w(lib mix.exs .formatter.exs README.md CHANGELOG.md LICENSE.md), licenses: ["MIT"], links: %{ Changelog: "https://github.com/stordco/buffy/releases", GitHub: "https://github.com/stordco/buffy" } ] end defp docs do [ before_closing_body_tag: &before_closing_body_tag/1, extras: ["README.md", "CHANGELOG.md", "LICENSE.md"], main: "readme" ] end defp before_closing_body_tag(:html) do """ """ end defp before_closing_body_tag(_), do: "" end