defmodule Antenna.MixProject do use Mix.Project @app :antenna @version "0.3.0" def project do [ app: @app, version: @version, elixir: "~> 1.12", compilers: compilers(Mix.env()), start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), consolidate_protocols: Mix.env() not in [:dev], prune_code_paths: Mix.env() not in [:test, :dev], description: description(), package: package(), deps: deps(), aliases: aliases(), docs: docs(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [ "coveralls.json": :test, "coveralls.html": :test ], releases: [], dialyzer: [ plt_file: {:no_warn, ".dialyzer/dialyzer.plt"}, plt_add_deps: :app_tree, plt_add_apps: [:mix], list_unused_filters: true, ignore_warnings: ".dialyzer/ignore.exs" ] ] end def application do [ extra_applications: [], mod: {Antenna.Application, []}, # start_phases: [{:antenna_setup, []}], registered: [Antenna, Antenna.Application] ] end defp deps do [ {:gen_stage, "~> 1.0"}, {:distributed_supervisor, "~> 0.5"}, {:doctest_formatter, "~> 0.2", only: [:dev], runtime: false}, {:enfiladex, "~> 0.3", only: [:dev, :test]}, {:excoveralls, "~> 0.14", only: [:test], runtime: false}, {:credo, "~> 1.0", only: [:dev, :test]}, {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:mneme, "~> 0.6", only: [:dev, :test]}, {:ex_doc, ">= 0.0.0", only: [:dev]} ] end defp aliases do [ quality: ["format", "credo --strict", "dialyzer"], "quality.ci": [ "format --check-formatted", "credo --strict", "dialyzer" ] ] end defp description do """ The tiny framework to simplify work with events, based on `GenStage` """ end defp package do [ name: @app, files: ~w|lib stuff .formatter.exs .dialyzer/ignore.exs mix.exs README* LICENSE|, maintainers: ["Aleksei Matiushkin"], licenses: ["MIT"], links: %{ "GitHub" => "https://github.com/am-kantox/#{@app}", "Docs" => "https://hexdocs.pm/#{@app}" } ] end defp docs do [ main: "Antenna", source_ref: "v#{@version}", canonical: "http://hexdocs.pm/#{@app}", logo: "stuff/#{@app}-48x48.png", source_url: "https://github.com/am-kantox/#{@app}", extras: ~w[README.md], groups_for_modules: [], groups_for_docs: [ "Functions (Client)": &(&1[:section] == :client), "Functions (Setup)": &(&1[:section] == :setup), "Functions (Internals)": &(&1[:section] == :internals) ], before_closing_body_tag: &before_closing_body_tag/1 ] end defp elixirc_paths(:dev), do: ["lib", "test/support"] defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp compilers(_), do: Mix.compilers() defp before_closing_body_tag(:html) do """ """ end defp before_closing_body_tag(_), do: "" end