Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Cldex.Mixfile do
use Mix.Project
@version "0.1.0"
def project do
[
app: :cldex,
version: @version,
elixir: "~> 1.12.2",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
name: "Cldex",
source_url: "https://github.com/WFH-Dev-Careers/cldex",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
deps: deps(Mix.env()),
description: description(),
package: package()
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
# Specify extra applications you'll use from Erlang/Elixir
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[
{:jason, "~> 1.3.0"},
{:tesla, "~> 1.4.4"},
{:hackney, "~> 1.18"},
{:bypass, "~> 2.1", only: :test},
{:credo, "~> 1.6.1", only: [:dev, :test]},
{:excoveralls, "~> 0.14.4", only: :test},
{:ex_doc, "~> 0.26.0", only: :dev},
{:ex_guard, "~> 1.5.0", only: :dev},
{:plug_cowboy, "~> 2.0", only: [:dev, :test]}
]
end
defp deps(_), do: deps()
defp description do
"""
Cldex is an Elixir library for the Cloudinary API
"""
end
defp package do
# These are the default files included in the package
[
name: :cldex,
files: ["lib", "mix.exs", "README*"],
creators: ["Patrick Veverka"],
maintainers: ["Adrian Setyadi"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/WFH-Dev-Careers/cldex"}
]
end
end