Current section
Files
Jump to
Current section
Files
mix.exs
defmodule EctoCQS.MixProject do
use Mix.Project
def project do
[
app: :ecto_cqs,
version: "0.1.8",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: "CQS library for Ecto",
package: package(),
deps: deps()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Alexey Terekhov"],
licenses: ["MIT"],
links: %{github: "https://github.com/tap349/ecto_cqs"},
# > <https://hex.pm/docs/publish>
# >
# > When running the command to publish a package, Hex will
# > create a tar file of all the files and directories listed
# > in the :files property
#
# => don't add priv, test, .gitignore and docker-compose.yml
# because they are required for running tests only - in that
# case a way to go is to clone repository from GitHub
files: ~w(
lib
.formatter.exs
CHANGELOG.md
LICENSE.md
README.md
mix.exs
)
]
end
defp deps do
[
{:ecto_sql, "~> 3.0"},
{:postgrex, ">= 0.0.0"},
{:ex_doc, "~> 0.19", only: :dev, runtime: false}
]
end
end