- flake.nix: Elixir 1.18.4 / OTP 27 / Node 22 dev shell - .envrc: use flake - config/config.exs: move fetch_env! to runtime.exs (compile-time safe) - config/runtime.exs: all secrets loaded at runtime via env vars - mix.lock: generated after mix deps.get - All 3 apps compile cleanly Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
47 lines
1.2 KiB
Elixir
47 lines
1.2 KiB
Elixir
defmodule WebSockAdapter.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :websock_adapter,
|
|
version: "0.5.9",
|
|
elixir: "~> 1.9",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
dialyzer: dialyzer(),
|
|
name: "WebSockAdapter",
|
|
description: "A set of WebSock adapters for common web servers",
|
|
source_url: "https://github.com/phoenixframework/websock_adapter",
|
|
package: [
|
|
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
|
|
maintainers: ["Mat Trudel"],
|
|
licenses: ["MIT"],
|
|
links: %{"GitHub" => "https://github.com/phoenixframework/websock_adapter"}
|
|
]
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[]
|
|
end
|
|
|
|
defp deps do
|
|
[
|
|
{:websock, "~> 0.5"},
|
|
{:plug, "~> 1.14"},
|
|
{:bandit, ">= 0.6.0", optional: true},
|
|
{:plug_cowboy, "~> 2.6", optional: true},
|
|
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
|
|
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
|
|
{:credo, "~> 1.0", only: [:dev, :test], runtime: false}
|
|
]
|
|
end
|
|
|
|
defp dialyzer do
|
|
[
|
|
plt_add_apps: [:cowboy],
|
|
plt_core_path: "priv/plts",
|
|
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
|
|
]
|
|
end
|
|
end
|