Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Svix.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/manusajith/svix"
def project do
[
app: :svix,
version: @version,
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
name: "Svix",
description: "Elixir client for the Svix webhook API",
source_url: @source_url,
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix]
]
]
end
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp deps do
[
{:req, "~> 0.5"},
{:jason, "~> 1.4"},
{:telemetry, "~> 1.2"},
{:ex_doc, "~> 0.35", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:bypass, "~> 2.1", only: :test}
]
end
defp package do
[
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md"
},
maintainers: ["Manu Ajith"],
files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md)
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md", "LICENSE"],
source_ref: "v#{@version}",
source_url: @source_url,
groups_for_modules: [
"Core API": [
Svix.Application,
Svix.Authentication,
Svix.Endpoint,
Svix.EventType,
Svix.Message,
Svix.MessageAttempt,
Svix.Integration
],
Webhooks: [
Svix.Webhook
],
"Operational Webhooks": [
Svix.OperationalWebhookEndpoint
],
Streaming: [
Svix.Stream,
Svix.Stream.EventType,
Svix.Stream.Events,
Svix.Stream.Sink
],
Ingest: [
Svix.Ingest.Source,
Svix.Ingest.Endpoint
],
Infrastructure: [
Svix.Client,
Svix.Http,
Svix.Error
]
]
]
end
end