Packages

A toolkit for building event-driven applications in Elixir with event sourcing and CQRS patterns

Current section

Files

Jump to
ex_sorcery mix.exs
Raw

mix.exs

defmodule Sorcery.MixProject do
use Mix.Project
def project do
[
app: :ex_sorcery,
version: "0.1.0",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex.pm metadata
description: "A toolkit for building event-driven applications in Elixir with event sourcing and CQRS patterns",
package: package(),
# Documentation
name: "Sorcery",
source_url: "https://github.com/YOURUSERNAME/sorcery",
homepage_url: "https://github.com/YOURUSERNAME/sorcery",
docs: [
main: "readme",
extras: ["README.md"],
groups_for_modules: [
Core: [
Sorcery,
Sorcery.Domain,
Sorcery.Event
],
"Event Storage": [
Sorcery.EventStore,
Sorcery.EventStore.Behaviour,
Sorcery.EventStore.MemoryStore
],
"Pub/Sub": [
Sorcery.PubSub,
Sorcery.PubSub.Behaviour
],
Services: [
Sorcery.Service
]
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
case Mix.env() do
:test ->
[extra_applications: [:logger]]
_ ->
[
mod: {Sorcery.Application, []},
extra_applications: [:logger]
]
end
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp package do
[
name: "ex_sorcery",
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/blackeuler/ex_sorcery"
},
files: ~w(lib .formatter.exs mix.exs README.md LICENSE)
]
end
end