Skip to content

Instantly share code, notes, and snippets.

@brucepom
Created September 20, 2016 20:08
Show Gist options
  • Save brucepom/d62b1d5e5f53f81d596b28c4532de3d2 to your computer and use it in GitHub Desktop.
Save brucepom/d62b1d5e5f53f81d596b28c4532de3d2 to your computer and use it in GitHub Desktop.
# /apps/cdt_dashboard/mix.exs
defmodule CdtDashboard.Mixfile do
use Mix.Project
def project do
[app: :cdt_dashboard,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test]]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {CdtDashboard, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex, :comeonin, :ex_machina, :stripity_stripe, :honeybadger, :calendar, :yaml_elixir]]
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.2.1"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.0"},
{:postgrex, "~> 0.12.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
{:mix_test_watch, "~> 0.2", only: :dev},
{:ex_unit_notifier, "~> 0.1", only: :test},
{:hound, "~> 1.0", only: :test},
{:plug_rails_cookie_session_store, "~> 0.1"},
{:comeonin, "~> 2.5"},
{:ex_machina, "~> 1.0"},
{:phoenix_integration, "~> 0.1"},
{:stripity_stripe, "~> 1.4.0"},
{:credo, "~> 0.4", only: [:dev, :test]},
{:honeybadger, "~> 0.1"},
{:calendar, "~> 0.16.0"},
{:calecto, "~> 0.16.0"},
{:yaml_elixir, "~> 1.2.1"},
{:dogma, "~> 0.1", only: :dev},
{:excoveralls, github: "parroty/excoveralls", only: :test},
{:bamboo, "~> 0.6"},
{:cdt_email, in_umbrella: true}]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment