Packages

'Mail merging' with Ecto structs. A parser to interpolate MediaWiki-like `[[foo.bar]]` markup using data from Ecto schemas.

Current section

Files

Jump to
mecto mix.exs
Raw

mix.exs

defmodule Mecto.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://gitlab.com/mucky-pup/mecto"
def project do
[
app: :mecto,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
source_url: @source_url,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.html": :test],
description: description(),
docs: docs(),
package: package(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nimble_parsec, "~> 1.3"},
{:excoveralls, "~> 0.16.1", only: :test},
{:ex_doc, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:inch_ex, github: "rrrene/inch_ex", only: [:dev, :test]},
{:ecto, "~> 3.10", only: :test}
]
end
defp description do
"'Mail merging' with Ecto structs. A parser to interpolate MediaWiki-like `[[foo.bar]]` markup using data from Ecto schemas."
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md"]
]
end
defp package do
[
licenses: ["MIT"],
links: %{"GitLab" => @source_url}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end