katso/mix.exs

57 lines
1.6 KiB
Elixir
Raw Normal View History

2015-04-18 20:03:53 +00:00
defmodule Katso.Mixfile do
use Mix.Project
def project do
[app: :katso,
2015-11-28 14:27:58 +00:00
version: "0.0.2",
2015-04-18 20:03:53 +00:00
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
2015-11-28 14:27:58 +00:00
aliases: aliases,
2015-04-18 20:03:53 +00:00
deps: deps]
end
2015-11-28 14:27:58 +00:00
# Configuration for the OTP application.
2015-04-18 20:03:53 +00:00
#
2015-11-28 14:27:58 +00:00
# Type `mix help compile.app` for more information.
2015-04-18 20:03:53 +00:00
def application do
[mod: {Katso, []},
2015-11-28 14:27:58 +00:00
applications: [:phoenix, :phoenix_html, :cowboy, :logger,
:phoenix_ecto, :postgrex, :httpoison, :tzdata]]
2015-04-18 20:03:53 +00:00
end
2015-11-28 14:27:58 +00:00
# Specifies which paths to compile per environment.
2015-04-18 20:03:53 +00:00
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
2015-11-28 14:27:58 +00:00
# Specifies your project dependencies.
2015-04-18 20:03:53 +00:00
#
2015-11-28 14:27:58 +00:00
# Type `mix help deps` for examples and options.
2015-04-18 20:03:53 +00:00
defp deps do
2015-11-28 14:27:58 +00:00
[{:phoenix, "~> 1.0.3"},
{:phoenix_ecto, "~> 1.1"},
2015-04-18 20:03:53 +00:00
{:postgrex, ">= 0.0.0"},
2015-11-28 14:27:58 +00:00
{:phoenix_html, "~> 2.1"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
2015-04-18 20:03:53 +00:00
{:cowboy, "~> 1.0"},
{:excoder, "1.3.0", git: "git@bitbucket.org:Nicd/excoder.git"},
2015-11-28 14:27:58 +00:00
{:floki, "~> 0.7.0"},
{:httpoison, "~> 0.8.0"},
{:timex, "~> 1.0.0-rc3"}
2015-04-18 20:03:53 +00:00
]
end
2015-11-28 14:27:58 +00:00
# Aliases are shortcut 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"]]
end
2015-04-18 20:03:53 +00:00
end