Packages

Essential utilities and helpers for Commanded CQRS/ES applications. Provides type-safe commands, events, enrichment pipeline, error handling, and more.

Current section

Files

Jump to
Raw

mix.exs

defmodule CommandedUtils.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/zven21/commanded_utils"
def project do
[
app: :commanded_utils,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
description: description(),
package: package(),
# Docs
name: "Commanded Utils",
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Core dependencies
{:commanded, "~> 1.4"},
{:ecto, "~> 3.10"},
{:jason, "~> 1.4"},
{:decimal, "~> 2.0"},
# Optional dependencies
{:commanded_ecto_projections, "~> 1.3", optional: true},
# Dev & Test
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
defp description do
"""
Essential utilities and helpers for Commanded CQRS/ES applications.
Provides type-safe commands, events, enrichment pipeline, error handling, and more.
"""
end
defp package do
[
name: "commanded_utils",
files: ~w(lib mix.exs README.md LICENSE CHANGELOG.md),
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md"
},
maintainers: ["zven"]
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
end