You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
3.7 KiB
124 lines
3.7 KiB
7 years ago
|
defmodule ExplorerWeb.Mixfile do
|
||
|
use Mix.Project
|
||
|
|
||
|
def project do
|
||
|
[
|
||
|
aliases: aliases(),
|
||
|
app: :explorer_web,
|
||
|
build_path: "../../_build",
|
||
|
config_path: "../../config/config.exs",
|
||
|
compilers: [:phoenix, :gettext | Mix.compilers()],
|
||
|
deps: deps(),
|
||
|
deps_path: "../../deps",
|
||
|
dialyzer: [
|
||
|
plt_add_deps: :transitive,
|
||
|
ignore_warnings: "../../.dialyzer-ignore"
|
||
|
],
|
||
|
elixir: "~> 1.4",
|
||
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||
|
lockfile: "../../mix.lock",
|
||
|
package: package(),
|
||
|
start_permanent: Mix.env() == :prod,
|
||
|
version: "0.0.1"
|
||
|
]
|
||
|
end
|
||
|
|
||
|
# Configuration for the OTP application.
|
||
|
#
|
||
|
# Type `mix help compile.app` for more information.
|
||
|
def application do
|
||
|
[
|
||
|
mod: {ExplorerWeb.Application, []},
|
||
|
extra_applications: extra_applications(Mix.env())
|
||
|
]
|
||
|
end
|
||
|
|
||
|
# Specifies which paths to compile per environment.
|
||
|
defp elixirc_paths(:test), do: ["test/support" | elixirc_paths()]
|
||
|
defp elixirc_paths(_), do: elixirc_paths()
|
||
|
defp elixirc_paths, do: ["lib"]
|
||
|
|
||
|
# Specifies extra applications to start per environment
|
||
|
defp extra_applications(:prod),
|
||
|
do: [:phoenix_pubsub_redis, :exq, :exq_ui | extra_applications()]
|
||
|
|
||
|
defp extra_applications(:dev), do: [:exq, :exq_ui | extra_applications()]
|
||
|
defp extra_applications(_), do: extra_applications()
|
||
|
|
||
|
defp extra_applications,
|
||
|
do: [
|
||
|
:scrivener_html,
|
||
|
:ex_cldr,
|
||
|
:ex_jasmine,
|
||
|
:timex,
|
||
|
:timex_ecto,
|
||
|
:crontab,
|
||
|
:set_locale,
|
||
|
:logger,
|
||
|
:runtime_tools,
|
||
|
:new_relixir
|
||
|
]
|
||
|
|
||
|
# Specifies your project dependencies.
|
||
|
#
|
||
|
# Type `mix help deps` for examples and options.
|
||
|
defp deps do
|
||
|
[
|
||
|
{:cowboy, "~> 1.0"},
|
||
|
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
|
||
|
{:crontab, "~> 1.1"},
|
||
|
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
|
||
|
{:ex_cldr_numbers, "~> 1.0"},
|
||
|
{:ex_cldr_units, "~> 1.0"},
|
||
|
{:ex_jasmine, github: "minifast/ex_jasmine", branch: "master"},
|
||
|
{:ex_machina, "~> 2.1", only: [:test]},
|
||
|
{:explorer, in_umbrella: true},
|
||
|
{:exvcr, "~> 0.10", only: :test},
|
||
|
{:flow, "~> 0.12"},
|
||
|
{:gettext, "~> 0.11"},
|
||
|
{:httpoison, "~> 1.0", override: true},
|
||
|
{:junit_formatter, ">= 0.0.0", only: [:test], runtime: false},
|
||
|
{:math, "~> 0.3.0"},
|
||
|
{:mock, "~> 0.3.0", only: [:test], runtime: false},
|
||
|
{:new_relixir, "~> 0.4"},
|
||
|
{:phoenix, "~> 1.3.0"},
|
||
|
{:phoenix_ecto, "~> 3.2"},
|
||
|
{:phoenix_html, "~> 2.10"},
|
||
|
{:phoenix_live_reload, "~> 1.0", only: [:dev]},
|
||
|
{:phoenix_pubsub, "~> 1.0"},
|
||
|
{:phoenix_pubsub_redis, "~> 2.1.0", only: [:prod]},
|
||
|
{:postgrex, ">= 0.0.0"},
|
||
|
{:react_phoenix, "~> 0.5"},
|
||
|
{:scrivener_html, "~> 1.7"},
|
||
|
# Waiting on https://github.com/smeevil/set_locale/pull/9
|
||
|
{:set_locale, github: "minifast/set_locale", branch: "master"},
|
||
|
{:sobelow, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
||
|
{:timex, "~> 3.1.24"},
|
||
|
{:timex_ecto, "~> 3.2.1"},
|
||
|
{:wallaby, "~> 0.19.2", only: [:test], runtime: false}
|
||
|
]
|
||
|
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
|
||
|
|
||
|
defp package do
|
||
|
[
|
||
|
maintainers: ["POA Networks Ltd."],
|
||
|
licenses: ["GPL 3.0"],
|
||
|
links: %{"GitHub" => "https://github.com/poanetwork/poa-explorer"}
|
||
|
]
|
||
|
end
|
||
|
end
|