defmodule Wild.MixProject do use Mix.Project @source_url "https://github.com/TylerPachal/wild" def project do [ app: :wild, version: "1.0.1", elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), # Hex package: package(), description: description(), # Docs name: "Wild", docs: docs(), source_url: @source_url, ] end def application do [] end defp elixirc_paths(:test), do: ["lib", "test/support", "test/mix"] defp elixirc_paths(_), do: ["lib"] defp deps do [ {:propcheck, "~> 1.4", only: :test}, {:exprof, "~> 0.2", only: :test}, {:benchee, "~> 1.0", only: :test}, {:ex_doc, "~> 0.25", only: :dev, runtime: false} ] end defp package do [ description: description(), files: ["priv", "lib", "config", "mix.exs", "README*"], maintainers: ["Tyler Pachal"], licenses: ["MIT"], links: %{github: @source_url} ] end defp docs do [ main: "readme", extras: ["README.md"], source_url: @source_url, extra_section: "Overview" ] end defp description do """ A wildcard matching library that implements unix-style blob pattern matching functionality for Elixir binaries. It works on all binary input and defaults to working with codepoint representations of binaries, but other modes are also available. """ end end