Packages

Lightstreamer TLCP client (WebSocket) for Elixir

Current section

Files

Jump to
Raw

mix.exs

defmodule Lightstreamer.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/ktec/lightstreamer"
def project do
[
app: :lightstreamer,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
dialyzer: [plt_file: {:no_warn, "priv/plts/dialyzer.plt"}],
# Hex
description: "Lightstreamer TLCP client (WebSocket) for Elixir",
package: package(),
# Docs
name: "Lightstreamer",
docs: docs()
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:mint, "~> 1.6"},
{:mint_web_socket, "~> 1.0"},
{:castore, "~> 1.0"},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:stream_data, "~> 1.1", only: [:dev, :test]}
]
end
defp package do
[
files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md),
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url, "Changelog" => "#{@source_url}/blob/main/CHANGELOG.md"}
]
end
defp docs do
[
main: "Lightstreamer",
source_url: @source_url,
source_ref: "v#{@version}",
extras: ["README.md", "CHANGELOG.md"],
groups_for_modules: [
Internals: [
Lightstreamer.Protocol,
Lightstreamer.Protocol.Frame,
Lightstreamer.Protocol.Update,
Lightstreamer.Session,
Lightstreamer.Transport,
Lightstreamer.Transport.MintWs
]
]
]
end
end