defmodule Quarrel.MixProject do use Mix.Project def project do [ app: :quarrel, description: "Sane wrapper around Nostrum", version: "0.1.1", elixir: "~> 1.12", start_permanent: Mix.env() == :prod, preferred_cli_env: [ test: :test ], source_url: "https://github.com/miata-bot/quarrel", package: package(), aliases: aliases(), deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {Quarrel.Application, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:nostrum, "~> 0.4.6", runtime: Mix.env() != :test, application: Mix.env() != :test}, {:ecto_sql, "~> 3.7"}, {:phoenix_pubsub, "~> 2.0"}, {:postgrex, "~> 0.15.10"}, {:jason, "~> 1.0"}, {:ex_doc, "~> 0.25.1", only: :docs} ] end def package do [ licenses: ["Apache-2.0"], links: %{"GitHub" => "https://github.com/miata-bot/quarrel"}, files: ~w(lib priv mix.exs README* LICENSE* CHANGELOG*) ] end # Aliases are shortcuts or tasks specific to the current project. # For example, to create, migrate and run the seeds file at once: # # $ mix ecto.setup # # See the documentation for `Mix` for more info on aliases. defp aliases do [ "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], "ecto.reset": ["ecto.drop", "ecto.setup"], test: ["ecto.create --quiet", "ecto.migrate", "test"] ] end end