defmodule HttpProxy.Mixfile do use Mix.Project def project do [app: :http_proxy, version: "1.1.3", elixir: "~> 1.3", 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], preferred_cli_env: [ vcr: :test, "vcr.delete": :test, "vcr.check": :test, "vcr.show": :test ], docs: docs() ] end def application do [ applications: [:logger, :cowboy, :plug, :hackney], mod: {HttpProxy, []} ] end defp aliases do [ proxy: ["run --no-halt"], test: ["coveralls"] ] end defp deps do [ {:cowboy, "~> 1.0.0" }, {:plug, "~> 1.0"}, {:hackney, "~> 1.6"}, {:exjsx, "~> 3.2"}, {:earmark, "~> 1.0", only: :dev}, {:ex_doc, "~> 0.13", only: :dev}, {:exvcr, "~> 0.7", only: :test}, {:ex_parameterized, "~> 1.0", only: :test}, {:excoveralls, "~> 0.5", only: :test}, {:credo, "~> 0.3", only: [:dev, :test]}, {:dialyxir, "~> 0.3", only: :dev}, {:shouldi, "~> 0.3", only: :test} ] 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