Current section

Files

Jump to
pinxs mix.exs
Raw

mix.exs

defmodule PINXS.MixProject do
use Mix.Project
def project do
[
app: :pinxs,
version: "3.0.0",
elixir: "~> 1.6",
source_url: "https://github.com/htdc/pinxs",
description: """
Use Pin Payments via Elixir
""",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
docs: [
logo: "./images/pin_payments.png",
extras: ["README.md"],
main: "readme"
]
]
end
def package do
[
licenses: ["MIT"],
maintainers: ["Martin Feckie"],
links: %{
"Github" => "https://github.com/htdc/pinxs"
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :gun]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.16", only: :dev, runtime: false},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:gun, "> 1.3.0"},
{:jason, "> 1.2.0"},
{:nug, "0.3.4", only: [:dev, :test]},
{:tesla, "> 1.3.0"}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support", "test/support/test_helpers"]
defp elixirc_paths(_), do: ["lib"]
end