Current section

Files

Jump to
Raw

mix.exs

defmodule RegexToStrings.MixProject do
use Mix.Project
@version "0.5.0"
def project do
[
app: :regex_to_strings,
elixir: "~> 1.10",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
version: @version,
package: package(),
description: "Get the strings a regex will match",
# ExDoc
name: "Regex to strings",
source_url: "https://github.com/mathieuprog/regex_to_strings",
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
licenses: ["Apache 2.0"],
maintainers: ["Mathieu Decaffmeyer"],
links: %{"GitHub" => "https://github.com/mathieuprog/regex_to_strings"}
]
end
defp docs do
[
main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}"
]
end
end