Packages

Create uniform yet flexible CRUD functions for your Phoenix contexts to reduce generated boilerplate.

Current section

Files

Jump to
lemon_crud mix.exs
Raw

mix.exs

defmodule LemonCrud.MixProject do
use Mix.Project
def project do
[
app: :lemon_crud,
description:
"Create uniform yet flexible CRUD functions for your Phoenix contexts to reduce generated boilerplate.",
version: "0.1.0",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix, :ex_unit, :ecto, :ecto_sql, :postgrex],
plt_add_deps: :app_tree
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
docs: [
main: "readme",
extras: ["README.md"]
]
]
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
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.37", only: :dev, runtime: false},
{:versioce, "~> 2.0.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.4.5", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:castore, "~> 1.0", only: :test},
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.0", optional: true},
{:postgrex, ">= 0.0.0", optional: true, only: [:dev, :test]}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
licenses: ["MIT"],
maintainers: ["Curiosum"],
links: %{"GitHub" => "https://github.com/curiosum-dev/lemon_crud"},
files: ~w(lib mix.exs README.md LICENSE)
]
end
end