Current section
Files
Jump to
Current section
Files
ecto_entity
mix.exs
mix.exs
defmodule Entity.MixProject do
use Mix.Project
def project do
[
app: :ecto_entity,
version: "1.0.1",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
# Hex
package: package(),
docs: docs(),
source_url: "https://github.com/kamaroly/ecto_entity",
description:
"An Elixir Ecto Package to Boost Your Productivity and Achieve 90% throughput in Just 10% of the Time.",
elixirc_paths: elixirc_paths(Mix.env())
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Ecto.Entity.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto_sql, "~> 3.0"},
{:phoenix, "~> 1.7"},
{:myxql, ">= 0.0.0"},
{:phoenix_pubsub, "~> 2.1"},
{:ex_doc, "~> 0.29.4", only: :dev, runtime: false},
{:faker, "~> 0.2.0", hex: :elixir_faker, runtime: Mix.env() == :test},
]
end
defp aliases do
[
test: ["ecto.drop --quiet", "ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
defp docs do
[
main: "readme",
extras: extras(),
groups_for_extras: groups_for_extras()
]
end
def extras() do
[
"README.md",
"CHANGELOG.md",
"guides/introduction/Getting Started.md",
"guides/howtos/Create.md",
"guides/howtos/Read.md",
"guides/howtos/Update.md",
"guides/howtos/Delete.md",
"guides/howtos/Events.md",
"guides/howtos/Association.md",
"guides/howtos/Conditions.md",
"guides/howtos/db.md",
"guides/cheatsheets/CRUD.cheatmd",
"guides/cheatsheets/Associations.cheatmd"
]
end
defp groups_for_extras do
[
Introduction: ~r/guides\/introduction\/.?/,
"How-To's": ~r/guides\/howtos\/.?/,
Cheatsheets: ~r/cheatsheets\/.?/
]
end
defp package() do
[
name: "ecto_entity",
# These are the default files included in the package
files: ~w(lib mix.exs doc README* test),
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/kamaroly/ecto_entity"}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end