Adds the full README (quickstart, interaction styles, privileged intents, cache, REST, slash registration, event semantics, Nostrum porting guide, reliability design), an examples/echo_bot.exs Mix.install script, ex_doc config in mix.exs, and rewrites Dexcord.Gateway's moduledoc to describe the finished reliability behavior instead of stale Phase 0-1 scope notes.
50 lines
1.1 KiB
Elixir
50 lines
1.1 KiB
Elixir
defmodule Dexcord.MixProject do
|
|
use Mix.Project
|
|
|
|
@source_url "https://github.com/luna/dexcord"
|
|
|
|
def project do
|
|
[
|
|
app: :dexcord,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.18",
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
name: "Dexcord",
|
|
source_url: @source_url,
|
|
docs: docs()
|
|
]
|
|
end
|
|
|
|
defp docs do
|
|
[
|
|
main: "readme",
|
|
extras: ["README.md"]
|
|
]
|
|
end
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
[
|
|
extra_applications: [:logger],
|
|
mod: {Dexcord.Application, []}
|
|
]
|
|
end
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
{:mint, "~> 1.7"},
|
|
{:mint_web_socket, "~> 1.0"},
|
|
{:finch, "~> 0.20"},
|
|
{:castore, "~> 1.0"},
|
|
{:bandit, "~> 1.0", only: :test},
|
|
{:websock_adapter, "~> 0.5", only: :test},
|
|
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
|
|
]
|
|
end
|
|
end
|