Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Acl.Mixfile do
use Mix.Project
def project do
[
app: :acl,
version: "0.1.6",
elixir: "~> 1.5",
maintainers: ["Azwar Habib"],
licenses: ["Apache 2.0"],
description: "Acl implementation.",
links: %{"GitHub" => "https://github.com/Azzy420/ACL"},
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
aliases: aliases(),
deps: deps()
]
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/Azzy420/ACL"}
]
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.3.0"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.2"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.10"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
{:plug_cowboy, "~> 1.0"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:jason, "~> 1.0"},
]
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", "test"]
]
end
end