defmodule EctoCQS.MixProject do use Mix.Project def project do [ app: :ecto_cqs, version: "0.3.2", 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"}, # > # > # > 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