2016-08-22 03:15:42 +00:00
|
|
|
defmodule Asciinema.Mixfile do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[app: :asciinema,
|
|
|
|
version: "0.0.1",
|
|
|
|
elixir: "~> 1.2",
|
|
|
|
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
|
|
|
|
|
|
|
|
# Configuration for the OTP application.
|
|
|
|
#
|
|
|
|
# Type `mix help compile.app` for more information.
|
|
|
|
def application do
|
|
|
|
[mod: {Asciinema, []},
|
2017-05-16 10:31:24 +00:00
|
|
|
applications: [
|
2017-05-21 11:26:41 +00:00
|
|
|
:briefly,
|
2017-05-16 10:31:24 +00:00
|
|
|
:bugsnag,
|
|
|
|
:cowboy,
|
2017-05-16 12:54:13 +00:00
|
|
|
:ex_aws,
|
2017-05-16 10:31:24 +00:00
|
|
|
:gettext,
|
|
|
|
:logger,
|
|
|
|
:phoenix,
|
|
|
|
:phoenix_ecto,
|
|
|
|
:phoenix_html,
|
|
|
|
:phoenix_pubsub,
|
|
|
|
:plug_rails_cookie_session_store,
|
2017-05-21 11:26:41 +00:00
|
|
|
:poolboy,
|
|
|
|
:porcelain,
|
2017-05-16 10:31:24 +00:00
|
|
|
:postgrex,
|
2017-06-12 09:52:50 +00:00
|
|
|
:timex,
|
|
|
|
:timex_ecto,
|
2017-05-16 10:31:24 +00:00
|
|
|
]]
|
2016-08-22 03:15:42 +00:00
|
|
|
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
|
2017-05-16 10:31:24 +00:00
|
|
|
[
|
2017-05-21 11:26:41 +00:00
|
|
|
{:briefly, "~> 0.3"},
|
2017-05-16 10:31:24 +00:00
|
|
|
{:cowboy, "~> 1.0"},
|
2017-05-16 12:54:13 +00:00
|
|
|
{:ex_aws, "~> 1.0"},
|
2017-05-16 10:31:24 +00:00
|
|
|
{:gettext, "~> 0.11"},
|
|
|
|
{:phoenix, "~> 1.2.1"},
|
|
|
|
{:phoenix_ecto, "~> 3.0"},
|
|
|
|
{:phoenix_html, "~> 2.6"},
|
|
|
|
{:phoenix_live_reload, "~> 1.0", only: :dev},
|
|
|
|
{:phoenix_markdown, "~> 0.1"},
|
|
|
|
{:phoenix_pubsub, "~> 1.0"},
|
|
|
|
{:plug_rails_cookie_session_store, "~> 0.1"},
|
2017-05-29 12:06:03 +00:00
|
|
|
{:plugsnag, "~> 1.3.0", github: "sickill/plugsnag"},
|
2017-05-16 10:31:24 +00:00
|
|
|
{:poison, "~> 2.2"},
|
2017-05-21 11:26:41 +00:00
|
|
|
{:poolboy, "~> 1.5"},
|
|
|
|
{:porcelain, "~> 2.0"},
|
2017-05-16 10:31:24 +00:00
|
|
|
{:postgrex, ">= 0.0.0"},
|
2017-06-12 09:52:50 +00:00
|
|
|
{:timex, "~> 3.0"},
|
|
|
|
{:timex_ecto, "~> 3.0"},
|
2017-05-16 10:31:24 +00:00
|
|
|
]
|
2016-08-22 03:15:42 +00:00
|
|
|
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
|