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.
133 lines
4.0 KiB
133 lines
4.0 KiB
7 years ago
|
defmodule ExplorerWeb.Mixfile do
|
||
|
use Mix.Project
|
||
|
|
||
|
def project do
|
||
|
[
|
||
|
aliases: aliases(),
|
||
6 years ago
|
app: :block_scout_web,
|
||
7 years ago
|
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"
|
||
|
],
|
||
7 years ago
|
elixir: "~> 1.6",
|
||
7 years ago
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||
|
lockfile: "../../mix.lock",
|
||
|
package: package(),
|
||
7 years ago
|
preferred_cli_env: [
|
||
|
coveralls: :test,
|
||
|
"coveralls.detail": :test,
|
||
|
"coveralls.post": :test,
|
||
7 years ago
|
"coveralls.html": :test,
|
||
|
dialyzer: :test
|
||
7 years ago
|
],
|
||
7 years ago
|
start_permanent: Mix.env() == :prod,
|
||
7 years ago
|
test_coverage: [tool: ExCoveralls],
|
||
7 years ago
|
version: "0.0.1"
|
||
|
]
|
||
|
end
|
||
|
|
||
|
# Configuration for the OTP application.
|
||
|
#
|
||
|
# Type `mix help compile.app` for more information.
|
||
|
def application do
|
||
|
[
|
||
|
mod: {ExplorerWeb.Application, []},
|
||
7 years ago
|
extra_applications: extra_applications()
|
||
7 years ago
|
]
|
||
|
end
|
||
|
|
||
|
# Specifies which paths to compile per environment.
|
||
6 years ago
|
defp elixirc_paths(:test), do: ["test/support", "test/block_scout_web/features/pages"] ++ elixirc_paths()
|
||
7 years ago
|
defp elixirc_paths(_), do: elixirc_paths()
|
||
|
defp elixirc_paths, do: ["lib"]
|
||
|
|
||
|
defp extra_applications,
|
||
|
do: [
|
||
|
:ex_cldr,
|
||
|
:timex,
|
||
|
:timex_ecto,
|
||
|
:crontab,
|
||
|
:set_locale,
|
||
|
:logger,
|
||
7 years ago
|
:runtime_tools
|
||
7 years ago
|
]
|
||
|
|
||
|
# Specifies your project dependencies.
|
||
|
#
|
||
|
# Type `mix help deps` for examples and options.
|
||
|
defp deps do
|
||
|
[
|
||
|
{:cowboy, "~> 1.0"},
|
||
7 years ago
|
{:credo, "0.9.2", only: [:dev, :test], runtime: false},
|
||
7 years ago
|
{:crontab, "~> 1.1"},
|
||
|
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
|
||
|
{:ex_cldr_numbers, "~> 1.0"},
|
||
|
{:ex_cldr_units, "~> 1.0"},
|
||
|
{:ex_machina, "~> 2.1", only: [:test]},
|
||
7 years ago
|
# Code coverage
|
||
|
{:excoveralls, "~> 0.8.1", only: [:test]},
|
||
7 years ago
|
{:explorer, in_umbrella: true},
|
||
|
{:exvcr, "~> 0.10", only: :test},
|
||
7 years ago
|
# HTML CSS selectors for Phoenix controller tests
|
||
|
{:floki, "~> 0.20.1", only: :test},
|
||
7 years ago
|
{:flow, "~> 0.12"},
|
||
7 years ago
|
{:gettext, "~> 0.14.1"},
|
||
7 years ago
|
{: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},
|
||
|
{:phoenix, "~> 1.3.0"},
|
||
|
{:phoenix_ecto, "~> 3.2"},
|
||
|
{:phoenix_html, "~> 2.10"},
|
||
|
{:phoenix_live_reload, "~> 1.0", only: [:dev]},
|
||
|
{:phoenix_pubsub, "~> 1.0"},
|
||
|
{:postgrex, ">= 0.0.0"},
|
||
|
# Waiting on https://github.com/smeevil/set_locale/pull/9
|
||
|
{:set_locale, github: "minifast/set_locale", branch: "master"},
|
||
7 years ago
|
{:sobelow, ">= 0.7.0", only: [:dev, :test], runtime: false},
|
||
7 years ago
|
{:timex, "~> 3.1.24"},
|
||
|
{:timex_ecto, "~> 3.2.1"},
|
||
7 years ago
|
{:wallaby, "~> 0.20", only: [:test], runtime: false},
|
||
7 years ago
|
{:qrcode, "~> 0.1.0"},
|
||
7 years ago
|
{:bypass, "~> 0.8", only: :test},
|
||
|
# Waiting for the Pretty Print to be implemented at the Jason lib
|
||
|
# https://github.com/michalmuskala/jason/issues/15
|
||
|
{:poison, "~> 3.1"}
|
||
7 years ago
|
]
|
||
|
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
|
||
|
[
|
||
7 years ago
|
compile: "compile --warnings-as-errors",
|
||
7 years ago
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||
7 years ago
|
test: [
|
||
|
"ecto.create --quiet",
|
||
|
"ecto.migrate",
|
||
|
# to match behavior of `mix test` from project root, which needs to not start applications for `indexer` to
|
||
|
# prevent its supervision tree from starting, which is undesirable in test
|
||
|
"test --no-start"
|
||
|
]
|
||
7 years ago
|
]
|
||
|
end
|
||
|
|
||
|
defp package do
|
||
|
[
|
||
|
maintainers: ["POA Networks Ltd."],
|
||
|
licenses: ["GPL 3.0"],
|
||
|
links: %{"GitHub" => "https://github.com/poanetwork/poa-explorer"}
|
||
|
]
|
||
|
end
|
||
|
end
|