defmodule Hafnium.MixProject do use Mix.Project @version "0.1.2" @github_url "https://github.com/clszzyh/hafnium" @description "Dynamic http request library, inspired by Tesla." def project do [ app: :hafnium, version: @version, description: @description, elixir: "~> 1.10", start_permanent: Mix.env() == :prod, package: [ licenses: ["MIT"], links: %{ "GitHub" => @github_url, "Changelog" => @github_url <> "/blob/master/CHANGELOG.md" } ], source_url: @github_url, deps: deps(), dialyzer: [ plt_core_path: "priv/plts", plt_file: {:no_warn, "priv/plts/dialyzer.plt"} ], aliases: aliases(), docs: [ source_ref: @version, source_url: @github_url, main: "readme", extras: ["README.md", "CHANGELOG.md"] ] ] end # 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 [ {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:credo, "~> 1.4", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.22", only: :dev, runtime: false}, {:httpoison, "~> 1.7"}, {:jason, "~> 1.2"} ] end defp aliases do [t: ["format --check-formatted", "credo --strict", "dialyzer --no-check"]] end end