Current section
Files
Jump to
Current section
Files
mix.exs
defmodule FatEcto.MixProject do
use Mix.Project
def project do
[
app: :fat_ecto,
version: "1.4.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
build_embedded: Mix.env() == :prod,
deps: deps(),
name: "FatEcto",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [warnings_as_errors: true],
description: description(),
package: package(),
aliases: aliases(),
docs: [
# The main page in the docs
main: "readme",
# logo: "path/to/logo.png",
extras: ["README.md"]
],
source_url: "https://github.com/tanweerdev/fat_ecto",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test
],
coveralls: [
minimum_coverage: 60
],
dialyzer: [
plt_add_apps: [:ex_unit]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 3.2 or ~> 3.5 or ~> 3.8 or ~> 3.10 or ~> 3.12"},
{:ecto_sql, "~> 3.2 or ~> 3.5 or ~> 3.8 or ~> 3.10 or ~> 3.12"},
{:postgrex, "~> 0.15 or ~> 0.16 or ~> 0.17 or ~> 0.19 or ~> 0.20"},
{:earmark, "~> 1.4", only: [:dev, :test], optional: true},
{:ex_doc, "~> 0.19 or ~> 0.28 or ~> 0.30 or ~> 0.31 or ~> 0.32 or ~> 0.36 or ~> 0.37",
only: [:dev, :test], runtime: false, optional: true},
{:ex_machina, "~> 2.3 or ~> 2.7 or ~> 2.8", only: [:dev, :test], optional: true},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false, optional: true},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false, optional: true},
# TODO: accept encoder as config/option
{:jason, "~> 1.1 or ~> 1.2 or ~> 1.3 or ~> 1.4"},
{:excoveralls, "~> 0.18", only: :test}
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
]
end
defp description() do
"fat_ecto provides methods for dynamically building queries according to the parameters it receive."
end
defp package() do
[
# These are the default files included in the package
files: ~w(lib .formatter.exs mix.exs README*),
licenses: ["MIT"],
maintainers: ["Muhammad Tanweer"],
links: %{
"GitHub" => "https://github.com/tanweerdev/fat_ecto",
"Docs" => "https://hexdocs.pm/fat_ecto/"
}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: [
"ecto.setup",
"test"
]
]
end
end