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
@name "Glock"
@version "0.1.1"
@repo "https://github.com/jeffgrunewald/glock"
def project do
[
app: :glock,
name: @name,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: @repo,
homepage_url: @repo,
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
[
{:cowlib, "~> 2.7"},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.23", only: :dev},
{:gun, "~> 1.3.3"},
{:plug_cowboy, "~> 2.1", 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" => @repo}
]
end
defp docs do
[
source_ref: "#{@repo}",
source_url: @repo,
main: @name
]
end
defp description,
do: "Simple websocket client based on the :gun http client library"
end