defmodule Laocoon.MixProject do use Mix.Project @app :laocoon @name "Laocoon" @version "0.1.0" @owner "kantox" @maintainers ["Aleksei Matiushkin"] @private_hex "" @licenses ["MIT"] def project do [ app: @app, name: @name, version: @version, elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, xref: [exclude: []], description: description(), package: package(), deps: deps(), aliases: aliases(), xref: [exclude: []], docs: docs(), releases: [], dialyzer: [ plt_file: {:no_warn, ".dialyzer/dialyzer.plt"}, ignore_warnings: ".dialyzer/ignore.exs" ] ] end def application do [ extra_applications: [:logger] ] end defp deps do [ {:stream_data, "~> 0.3"}, # dev / test {:credo, "~> 1.0", only: [:dev, :ci]}, {:dialyxir, "~> 1.0", only: [:dev, :test, :ci], runtime: false}, {:ex_doc, "~> 0.11", only: :dev} ] end defp aliases do [ quality: ["format", "credo --strict", "dialyzer"], "quality.ci": [ "format --check-formatted", "credo --strict", "dialyzer" ] ] end defp description do """ **Laocoön** is the testing / seeding tool faking external sources. **Laocoön** was a Trojan priest who was attacked, with his two sons, by giant serpents sent by the gods. See https://en.wikipedia.org/wiki/Laoco%C3%B6n for details. """ end defp package do [ name: @app, files: ~w|stuff lib mix.exs README.md|, maintainers: @maintainers, licenses: @licenses, links: %{ "GitHub" => "https://github.com/#{@owner}/#{@app}", "Docs" => "https://#{@private_hex}hexdocs.pm/#{@app}" } ] end defp docs do [ main: "Laocoon", source_ref: "v#{@version}", canonical: "http://#{@private_hex}hexdocs.pm/#{@app}", logo: "stuff/#{@app}-48x48.png", source_url: "https://github.com/#{@owner}/#{@app}", assets: "stuff/images", extras: ["README.md"], groups_for_modules: [] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(:ci), do: ["lib", "test/support"] defp elixirc_paths(:dev), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] end