Current section

Files

Jump to
Raw

mix.exs

defmodule CorreiosEx.MixProject do
use Mix.Project
def project do
[
app: :correios_ex,
version: File.read!("VERSION"),
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "CorreiosEx",
source_url: "https://github.com/marciotoze/correios_ex",
homepage_url: "https://github.com/marciotoze/correios_ex",
docs: &docs/0
]
end
# Specifies which paths to compile per environment.
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],
mod: {CorreiosEx.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: :dev, runtime: false, warn_if_outdated: true},
{:exvcr, "~> 0.11", only: :test},
{:httpoison, "~> 2.0"},
{:jason, "~> 1.4", only: [:dev, :test]},
{:mint, "~> 1.0", only: [:dev, :test]}
]
end
defp docs do
[
main: "CorreiosEx",
extras: ["README.md"],
groups_for_modules: [
Resources: [
CorreiosEx.Auth,
CorreiosEx.Cost,
CorreiosEx.ETA,
CorreiosEx.Contract
]
]
]
end
defp description() do
"A Elixir client for the Correios API."
end
defp package() do
[
name: "correios_ex",
files: ~w(lib .formatter.exs mix.exs README* LICENSE*),
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/marciotoze/correios_ex"}
]
end
end