Packages

An event_bus data store building with Broadway.

Current section

Files

Jump to

mix.exs

defmodule EventBusDatastore.MixProject do
use Mix.Project
@github_url "https://github.com/scottming/event_bus_datastore"
def project do
[
app: :event_bus_datastore,
version: "0.1.0",
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: "An event_bus data store building with Broadway.",
package: [
files: ~w(mix.exs lib README.md),
licenses: ["MIT"],
maintainers: ["ScottMing"],
links: %{
"GitHub" => @github_url
}
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
case Mix.env() do
# In test we start an application to test the Ecto Repo integration
:test ->
[
mod: {TestApp, []},
extra_applications: [:logger, :runtime_tools, :broadway, :event_bus]
]
_ ->
[
extra_applications: [:logger, :broadway, :event_bus],
mod: {EventBusDatastore.Application, []}
]
# [extra_applications: [:logger]]
end
# [
# extra_applications: [:logger],
# mod: {EventBusDatastore.Application, []}
# ]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# 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"}
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:gen_stage, "~> 1.0"},
{:postgrex, ">= 0.13.3"},
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.0", only: :test},
{:broadway, "~> 0.6.0"},
{:event_bus, "~> 1.6.2"},
{:elixir_uuid, "~> 1.2"}
]
end
end