Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Acl.MixProject do
use Mix.Project
def project do
[
app: :acl,
version: "0.5.0",
elixir: "~> 1.14",
maintainers: ["Azwar Habib"],
description: "Acl implementation.",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
aliases: aliases(),
deps: deps(),
name: "ACL",
source_url: "https://github.com/CleverBytes/acl",
homepage_url: "https://github.com/CleverBytes/acl",
# The main page in the docs
docs: docs()
]
end
defp description do
"""
Acl implementation.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README.md"],
maintainers: ["Azwar Habib"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/CleverBytes/acl"},
description: "Acl implementation."
]
end
defp docs do
[
extras: ["README.md"],
main: "Acl",
source_url: "https://github.com/CleverBytes/acl",
homepage_url: "https://github.com/CleverBytes/acl",
formatters: ["html"],
api_reference: false
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Acl.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.7.10"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.10"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 3.3"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.20.1"},
{:floki, ">= 0.30.0", only: :test},
{:gettext, "~> 0.20"},
{:jason, "~> 1.2"},
{:dns_cluster, "~> 0.1.1"},
{:plug_cowboy, "~> 2.5"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end