Initial commit: there's still tons of base Phoenix boilerplate to remove, but the...
[tech-radar-editor.git] / mix.exs
1 defmodule TechRadarEditor.Mixfile do
2 use Mix.Project
3
4 def project do
5 [app: :tech_radar_editor,
6 version: "0.0.1",
7 elixir: "~> 1.2",
8 elixirc_paths: elixirc_paths(Mix.env),
9 compilers: [:phoenix, :gettext] ++ Mix.compilers,
10 build_embedded: Mix.env == :prod,
11 start_permanent: Mix.env == :prod,
12 aliases: aliases(),
13 deps: deps()]
14 end
15
16 # Configuration for the OTP application.
17 #
18 # Type `mix help compile.app` for more information.
19 def application do
20 [mod: {TechRadarEditor, []},
21 applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
22 :phoenix_ecto, :postgrex]]
23 end
24
25 # Specifies which paths to compile per environment.
26 defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
27 defp elixirc_paths(_), do: ["lib", "web"]
28
29 # Specifies your project dependencies.
30 #
31 # Type `mix help deps` for examples and options.
32 defp deps do
33 [{:phoenix, "~> 1.2.4"},
34 {:phoenix_pubsub, "~> 1.0"},
35 {:phoenix_ecto, "~> 3.0"},
36 {:postgrex, ">= 0.0.0"},
37 {:phoenix_html, "~> 2.6"},
38 {:phoenix_live_reload, "~> 1.0", only: :dev},
39 {:gettext, "~> 0.11"},
40 {:cowboy, "~> 1.0"}]
41 end
42
43 # Aliases are shortcuts or tasks specific to the current project.
44 # For example, to create, migrate and run the seeds file at once:
45 #
46 # $ mix ecto.setup
47 #
48 # See the documentation for `Mix` for more info on aliases.
49 defp aliases do
50 ["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
51 "ecto.reset": ["ecto.drop", "ecto.setup"],
52 "test": ["ecto.create --quiet", "ecto.migrate", "test"]]
53 end
54 end