Skip to content

Instantly share code, notes, and snippets.

@frpaulas
Created April 1, 2016 15:40
Show Gist options
  • Save frpaulas/771d87084bad800a56442f4360467556 to your computer and use it in GitHub Desktop.
Save frpaulas/771d87084bad800a56442f4360467556 to your computer and use it in GitHub Desktop.
defmodule Iphod.Mixfile do
use Mix.Project
def project do
[app: :iphod,
version: "0.0.1",
elixir: "~> 1.2.0",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
timex: "~> 0.13.4",
deps: deps]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {Iphod, []},
applications: [:phoenix, :phoenix_html, :phoenix_live_reload,
:cowboy, :logger, :gettext, :mock,
:phoenix_ecto, :postgrex, :timex, :httpoison]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[{:phoenix, "~> 1.1.4"},
{:phoenix_ecto, "~> 2.0"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.4"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.9"},
{:cowboy, "~> 1.0"},
{:timex, "~> 2.1.4"},
{:exrm, "~> 1.0.3"},
{:mock, github: "jjh42/mock", only: :dev},
{:httpoison, "~> 0.8.2"}
]
end
# 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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment