Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
120 lines (108 sloc) 2.71 KB
defmodule Commanded.Mixfile do
use Mix.Project
@version "0.18.0"
def project do
[
app: :commanded,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
docs: docs(),
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() == :prod,
name: "Commanded",
source_url: "https://github.com/commanded/commanded"
]
end
def application do
[
extra_applications: [
:logger
],
mod: {Commanded.Application, []}
]
end
defp elixirc_paths(:test),
do: [
"lib",
"test/aggregates/support",
"test/commands/support",
"test/event/support",
"test/event_store/support",
"test/example_domain",
"test/helpers",
"test/process_managers/support",
"test/pubsub/support",
"test/registration/support",
"test/support"
]
defp elixirc_paths(_), do: ["lib", "test/helpers"]
defp deps do
[
{:elixir_uuid, "~> 1.2"},
# Build & test tools
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
{:ex_doc, "~> 0.19", only: :dev},
{:mix_test_watch, "~> 0.9", only: :dev},
{:mox, "~> 0.4", only: :test},
# Optional dependencies
{:jason, "~> 1.1", optional: true},
{:phoenix_pubsub, "~> 1.1", optional: true}
]
end
defp description do
"""
Use Commanded to build your own Elixir applications following the CQRS/ES pattern.
"""
end
defp docs do
[
main: "Commanded",
canonical: "http://hexdocs.pm/commanded",
source_ref: "v#{@version}",
extra_section: "GUIDES",
extras: [
"guides/Getting Started.md",
"guides/Choosing an Event Store.md",
"guides/Usage.md",
"guides/Aggregates.md",
"guides/Commands.md",
"guides/Events.md",
"guides/Process Managers.md",
"guides/Supervision.md",
"guides/Serialization.md",
"guides/Read Model Projections.md",
"guides/Testing.md",
"guides/Deployment.md",
"CHANGELOG.md"
]
]
end
defp package do
[
files: [
"lib",
"mix.exs",
".formatter.exs",
"README*",
"LICENSE*",
"CHANGELOG*",
"test/event_store/support",
"test/example_domain",
"test/helpers",
"test/registration/support",
"test/support"
],
maintainers: ["Ben Smith"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/commanded/commanded",
"Docs" => "https://hexdocs.pm/commanded/"
}
]
end
end
You can’t perform that action at this time.