Packages

Simple websocket client based on the :gun http client library

Current section

Files

Jump to
glock mix.exs
Raw

mix.exs

defmodule Glock.MixProject do
use Mix.Project
@github "https://github.com/jeffgrunewald/glock"
def project do
[
app: :glock,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: @github,
homepage_url: @github,
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [plt_file: {:no_warn, ".dialyzer/#{System.version()}.plt"}]
]
end
def application,
do: [extra_applications: [:logger]]
defp deps do
[
{:dialyxir, "~> 1.0.0-rc.7", only: [:dev], runtime: false},
{:ex_doc, "~> 0.21.0", only: :dev},
{:gun, "~> 1.3"},
{:plug_cowboy, "~> 2.1.0", only: [:test]}
]
end
defp elixirc_paths(env) when env in [:test], do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Jeff Grunewald"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => @github}
]
end
defp docs do
[
source_url: @github,
extras: ["README.md"],
source_url_pattern: "#{@github}/blob/master/%{path}#L%{line}"
]
end
defp description,
do: "Simple websocket client based on the :gun http client library"
end