Current section

Files

Jump to
Raw

mix.exs

defmodule FlopPhoenix.MixProject do
use Mix.Project
def project do
[
app: :flop_phoenix,
version: "0.3.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test
],
dialyzer: [
ignore_warnings: ".dialyzer_ignore.exs",
list_unused_filters: true,
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
name: "Flop Phoenix",
source_url: "https://github.com/woylie/flop_phoenix",
homepage_url: "https://github.com/woylie/flop_phoenix",
description: description(),
package: package(),
docs: [
main: "readme",
extras: ["README.md"]
],
consolidate_protocols: Mix.env() != :test
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:credo, "~> 1.4.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:ex_machina, "~> 2.4", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:flop, "~> 0.6.1"},
{:phoenix_html, "~> 2.14"},
{:plug, "~> 1.10"},
{:stream_data, "~> 0.5", only: [:dev, :test]}
]
end
defp description do
"""
Flop Phoenix defines view helper functions for pagination, sorting and
filtering in Phoenix with Flop.
"""
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/woylie/flop_phoenix"},
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*)
]
end
end