Current section
Files
Jump to
Current section
Files
rivet_email
mix.exs
mix.exs
defmodule RivetEmail.MixProject do
use Mix.Project
@source_url "https://github.com/srevenant/rivet-email"
def project do
[
app: :rivet_email,
version: "4.0.1",
package: package(),
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
dialyzer: :test
],
deps: deps(),
dialyzer: [
ignore_warnings: ".dialyzer_ignore.exs",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
xref: [exclude: List.wrap(Application.get_env(:rivet, :repo))],
source_url: @source_url,
docs: [main: "Rivet.Email"],
aliases: aliases(),
description: description()
]
end
def application do
[
env: [
rivet: [
app: :rivet_email,
base: Rivet.Email,
models_dir: "email"
]
],
extra_applications: [:logger, {:ex_unit, :optional}]
]
end
defp aliases do
[
"ecto.migrate": ["rivet migrate"],
"ecto.setup": ["ecto.create", "rivet migrate"],
"ecto.reset": ["ecto.drop --force-drop -f", "ecto.setup"],
test: ["ecto.create --quiet", "rivet migrate", "test"],
c: ["compile"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# please alphabetize
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:ex_machina, "~> 2.7.0", only: :test, runtime: false},
{:excoveralls, "~> 0.18", only: :test, runtime: false},
{:faker, "~> 0.18", only: :test, runtime: false},
{:gen_smtp, "~> 1.3"},
# {:hackney, "~> 1.9", only: :test},
{:html2markdown, "~> 0.3"},
{:jason, "~> 1.4"},
{:mix_test_watch, "~> 1.4", only: [:dev, :test], runtime: false},
{:postgrex, "~> 0.21"},
{:rivet, "~> 2.7"},
{:swoosh, "~> 1.19"},
{:transmogrify, "~> 2.0.2"}
]
end
defp description() do
"""
Email handler with templates for Elixir, part of the Rivets Framework
"""
end
defp package() do
[
files: ~w(lib .formatter.exs mix.exs priv/rivet README* LICENSE*),
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url},
source_url: @source_url
]
end
end