mix.exs (1633B)
1 defmodule Dialyxir.Mixfile do 2 use Mix.Project 3 4 @source_url "https://github.com/jeremyjh/dialyxir" 5 @version "1.2.0" 6 7 def project do 8 [ 9 app: :dialyxir, 10 version: @version, 11 elixir: ">= 1.6.0", 12 elixirc_paths: elixirc_paths(Mix.env()), 13 description: description(), 14 package: package(), 15 deps: deps(), 16 aliases: [test: "test --no-start"], 17 dialyzer: [ 18 plt_apps: [:dialyzer, :elixir, :kernel, :mix, :stdlib, :erlex], 19 ignore_warnings: ".dialyzer_ignore.exs", 20 flags: [:unmatched_returns, :error_handling, :underspecs] 21 ], 22 # Docs 23 name: "Dialyxir", 24 homepage_url: @source_url, 25 # The main page in the docs 26 docs: [ 27 main: "readme", 28 source_url: @source_url, 29 source_ref: @version, 30 extras: ["CHANGELOG.md", "README.md"] 31 ] 32 ] 33 end 34 35 def application do 36 [mod: {Dialyxir, []}, extra_applications: [:dialyzer, :crypto, :mix]] 37 end 38 39 defp description do 40 """ 41 Mix tasks to simplify use of Dialyzer in Elixir projects. 42 """ 43 end 44 45 defp elixirc_paths(:examples), do: ["lib", "test/examples"] 46 defp elixirc_paths(_), do: ["lib"] 47 48 defp deps do 49 [ 50 {:erlex, ">= 0.2.6"}, 51 {:ex_doc, ">= 0.0.0", only: :dev, runtime: false} 52 ] 53 end 54 55 defp package do 56 [ 57 files: [ 58 "lib", 59 "mix.exs", 60 "README.md", 61 "LICENSE" 62 ], 63 maintainers: ["Jeremy Huffman"], 64 licenses: ["Apache-2.0"], 65 links: %{ 66 "Changelog" => "https://hexdocs.pm/dialyxir/changelog.html", 67 "GitHub" => @source_url 68 } 69 ] 70 end 71 end