Packages

The official Elixir client SDK for EventSourcingDB – a purpose-built database for event sourcing.

Current section

Files

Jump to
Raw

mix.exs

defmodule EventSourcingDB.MixProject do
use Mix.Project
@version "1.0.0"
@source_url "https://github.com/thenativeweb/eventsourcingdb-client-elixir"
@homepage_url "https://www.eventsourcingdb.io/"
@documentation_url "https://docs.eventsourcingdb.io/"
def project do
[
app: :eventsourcingdb,
version: @version,
elixir: "~> 1.19",
package: package(),
aliases: aliases(),
deps: deps(),
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
# Docs
name: "EventSourcingDB",
docs: &docs/0
]
end
defp elixirc_paths(:prod), do: ["lib"]
defp elixirc_paths(_), do: ["lib", "test/support"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
name: "eventsourcingdb",
description:
"The official Elixir client SDK for EventSourcingDB – a purpose-built database for event sourcing.",
links: %{
"GitHub" => @source_url,
"Website" => @homepage_url,
"Documentation" => @documentation_url
},
licenses: ["MIT"]
]
end
defp docs do
[
# can be changed to a module name, if you prefer
main: "readme",
source_url: @source_url,
source_ref: "#{@version}",
# logo: "path/to/logo.png",
extras: ["README.md"],
groups_for_modules: [
Events: [
EventSourcingDB.Event,
EventSourcingDB.EventCandidate,
EventSourcingDB.EventType,
EventSourcingDB.ManagementEvent
],
Preconditions: [
EventSourcingDB.IsEventQLQueryTrue,
EventSourcingDB.IsSubjectOnEventId,
EventSourcingDB.IsSubjectPopulated,
EventSourcingDB.IsSubjectPristine
],
"Request Options": [
EventSourcingDB.BoundOptions,
EventSourcingDB.ObserveEventsOptions,
EventSourcingDB.ObserveFromLatestEventOptions,
EventSourcingDB.ReadEventsOptions,
EventSourcingDB.ReadFromLatestEventOptions
],
Testing: [
EventSourcingDB.TestContainer
]
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:req, "~> 0.5.16"},
{:jason, "~> 1.2"},
{:jose, "~> 1.11"},
{:ex_json_schema, "~> 0.11.2"},
{:typedstruct, "~> 0.5"},
{:testcontainers, "~> 2.0"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.40.1", only: :dev, runtime: false, warn_if_outdated: true}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
i: ["deps.get"],
ic: ["deps.get", "deps.compile"]
]
end
end