Created
February 19, 2016 15:53
-
-
Save johnhamelink/7de7804f2af7dbbbba7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Api.Mixfile do | |
| use Mix.Project | |
| def project do | |
| [app: :api, | |
| version: "0.3.1", | |
| build_path: "../../_build", | |
| config_path: "../../config/config.exs", | |
| deps_path: "../../deps", | |
| lockfile: "../../mix.lock", | |
| elixir: "~> 1.0", | |
| 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] | |
| end | |
| def application do | |
| [mod: {Api, []}, | |
| env: [ci: false], | |
| applications: applications(Mix.env)] | |
| end | |
| defp applications(:dev) do | |
| applications(:all) ++ [:phoenix_live_reload] | |
| end | |
| defp applications(:docs) do | |
| applications(:all) ++ [:ex_doc, :earmark] | |
| end | |
| defp applications(_all) do | |
| [ | |
| :phoenix, :phoenix_html, :cowboy, :logger, :gettext, | |
| :phoenix_ecto, :httpoison, :neo4j_sips, :ja_serializer, | |
| :uuid, :elibphonenumber, :exrm, :exsentry, :ex_statsd, | |
| :ejabberd, :gcm, :apns, :discovery, :db | |
| ] | |
| 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 | |
| [ | |
| {:db, in_umbrella: true}, | |
| {:ex_machina, "~> 0.6", only: :test}, | |
| {:phoenix, "~> 1.1"}, | |
| {:phoenix_ecto, "~> 2.0"}, | |
| {:phoenix_html, "~> 2.5"}, | |
| {:phoenix_live_reload, "~> 1.0", only: :dev}, | |
| {:gettext, "~> 0.9"}, | |
| {:cowboy, "~> 1.0"}, | |
| {:httpoison, "~> 0.8", override: true}, # HTTP Client | |
| {:poison, "~> 1.5"}, # JSON library | |
| {:ja_serializer, "~> 0.6"}, # JSON-API Output | |
| {:neo4j_sips, github: "florinpatrascu/neo4j_sips"}, # Neo4j Driver Support | |
| {:uuid, "~> 1.1"}, # UUID support | |
| {:elibphonenumber, "~> 0.1"}, # For phone number parsing & formatting | |
| {:cf, "~> 0.2.1", override: true}, # remove this later (exrm acting up on elixir 1.2.1) | |
| {:erlware_commons, | |
| github: "erlware/erlware_commons", | |
| override: true}, # remove this later (exrm acting up on elixir 1.2.1) | |
| {:exrm, github: "bitwalker/exrm", | |
| branch: "master", override: true}, # For making releases | |
| {:ex_doc, "~> 0.11.4", only: :docs}, # Documentation generation | |
| {:earmark, "~> 0.1", only: :docs}, # Markdown formatter | |
| {:exsentry, "~> 0.2.1"}, # Error logging with Sentry | |
| {:ex_statsd, ">= 0.5.1"}, # Dogstatsd integration | |
| {:ejabberd, github: "processone/ejabberd"}, # XMPP Server | |
| {:gcm, "~> 1.2.0"}, # GCM Push notifications | |
| {:apns, "~> 0.0.11"}, # APNS Push Notifications | |
| {:hash_ring_ex, # Dependency of discovery | |
| github: "jordan0day/hash-ring-ex", | |
| branch: "update_to_elixir1_1", | |
| override: true}, | |
| {:discovery, "~> 0.5.0"}, # Automatic Service Discovery | |
| {:consul, "~> 1.0.0"} # Communicate with Consul API | |
| ] | |
| 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