Current section

Files

Jump to
http_proxy mix.exs
Raw

mix.exs

defmodule HttpProxy.Mixfile do
use Mix.Project
def project do
[app: :http_proxy,
version: "1.3.0",
elixir: "~> 1.6",
name: "ExHttpProxy",
source_url: "https://github.com/KazuCocoa/http_proxy",
description: "Multi port HTTP Proxy and support record/play request.",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
preferred_cli_env: [
vcr: :test, "vcr.delete": :test, "vcr.check": :test, "vcr.show": :test
],
docs: docs()
]
end
def application do
[
extra_applications: [:logger],
mod: {HttpProxy, []}
]
end
defp aliases do
[
proxy: ["run --no-halt"],
test: ["coveralls"]
]
end
defp deps do
[
{:cowboy, "~> 1.1.2"},
{:plug, "~> 1.4.0"},
{:hackney, "1.6.5"},
{:exjsx, "~> 4.0.0", runtime: false},
{:earmark, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.13", only: :dev, runtime: false},
{:ex_parameterized, "~> 1.0", only: :test, runtime: false},
{:credo, "~> 0.3", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.3", only: :dev, runtime: false},
{:excoveralls, "~> 0.8.0", only: :test, runtime: false}
]
end
defp package do
[
files: ~w(lib mix.exs README.md LICENSE),
maintainers: ["Kazuaki Matsuo"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/KazuCocoa/http_proxy"}
]
end
defp docs do
[
extras: [
"CHANGELOG.md",
"README.md"
]
]
end
end