Current section
Files
Jump to
Current section
Files
mix.exs
defmodule ExHal.Mixfile do
use Mix.Project
def project do
[app: :exhal,
description: "Use HAL APIs with ease",
version: "2.1.0",
elixir: "~> 1.0",
deps: deps,
package: package]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger]]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type `mix help deps` for more examples and options
defp deps do
[
{:poison, "~>2.0"},
{:uri_template, "~>1.0"},
{:httpoison, "~> 0.8.0"},
{:earmark, ">= 0.0.0", only: :dev},
{:ex_doc, "~> 0.11", only: :dev},
{:exvcr, "~> 0.7", only: :test}
]
end
defp package do
[ files: git_files,
licenses: ["http://opensource.org/licenses/MIT"],
maintainers: ["Peter Williams"],
links: %{"homepage": "http://github.com/pezra/exhal"} ]
end
defp git_files do
System.cmd("git", ["ls-files", "-z"])
|> (fn {x,_} -> x end).()
|> String.split(<<0>>)
|> Enum.filter(fn x -> x != "" end)
end
end