defmodule PathGlob.MixProject do use Mix.Project def project do [ app: :path_glob, version: "0.2.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), elixirc_paths: elixirc_paths(Mix.env()), name: "PathGlob", source_url: "https://github.com/jonleighton/path_glob", homepage_url: "https://hexdocs.pm/path_glob/", docs: [ main: "readme", extras: ["README.md"] ] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end defp description() do """ PathGlob tests whether a file path matches a glob pattern, without touching the filesystem. It has the same semantics as Path.wildcard/2. """ end defp package() do [ licenses: ["Apache-2.0"], links: %{"GitHub" => "https://github.com/jonleighton/path_glob"} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:nimble_parsec, "~> 1.2.3", runtime: false}, {:ex_doc, "~> 0.24", only: :dev, runtime: false} ] end end