Current section

Files

Jump to
elixir_a2s mix.exs
Raw

mix.exs

defmodule A2S.MixProject do
use Mix.Project
def project do
[
app: :a2s,
version: "0.2.5",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
description: "An implementation of Valve's A2S protocol for Elixir.",
deps: deps(),
docs: docs(),
package: package()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.14", only: :dev, runtime: false}
]
end
defp docs do
[
name: "Elixir A2S",
main: "readme",
source_ref: "main",
source_url: "https://github.com/Moosieus/elixir-a2s",
extras: [
"README.md",
"pages/using-a2s-directly.md"
],
assets: [
"pages/assets"
],
groups_for_extras: [
Guides: [
"pages/using-a2s-directly.md"
]
],
groups_for_modules: [
"Developer Interface": [
A2S.Client,
A2S
],
"Response Types": [
A2S.Info,
A2S.Players,
A2S.Rules,
A2S.Player,
A2S.Rule,
A2S.MultiPacketHeader
],
"Client Internals": [
A2S.DynamicSupervisor,
A2S.Statem,
A2S.UDP
]
],
before_closing_head_tag: &before_closing_head_tag/1
]
end
defp before_closing_head_tag(:html) do
"""
<style>
.dark img[src$=".svg"] {
filter: invert(93%) hue-rotate(180deg);
}
</style>
"""
end
defp before_closing_head_tag(:epub), do: ""
defp package do
[
name: "elixir_a2s",
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/Moosieus/elixir-a2s"}
]
end
end