Packages
flop
0.6.0
0.26.5
0.26.4
0.26.3
0.26.2
0.26.1
0.26.0
0.25.0
0.24.1
0.24.0
0.23.0
0.22.1
0.22.0
0.21.0
0.20.3
0.20.2
0.20.1
0.20.0
0.19.0
0.18.4
0.18.3
0.18.2
0.18.1
0.18.0
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.0
0.13.2
0.13.1
0.13.0
0.12.0
0.11.0
0.10.0
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.1
0.7.0
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
Filtering, ordering and pagination with Ecto.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Flop.MixProject do
use Mix.Project
def project do
[
app: :flop,
version: "0.6.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",
source_url: "https://github.com/woylie/flop",
homepage_url: "https://github.com/woylie/flop",
description: description(),
package: package(),
docs: [
main: "readme",
extras: ["README.md"]
],
aliases: aliases(),
consolidate_protocols: Mix.env() != :test
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.4.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0", only: [:dev], runtime: false},
{:ecto, "~> 3.2"},
{:ecto_sql, "~> 3.4", only: :test},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:ex_machina, "~> 2.4", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:postgrex, ">= 0.0.0", only: :test},
{:stream_data, "~> 0.5", only: [:dev, :test]}
]
end
defp description do
"Flop is a library for filtering, ordering and pagination with Ecto."
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/woylie/flop"},
files: ~w(lib .formatter.exs mix.exs README* LICENSE*)
]
end
defp aliases do
[test: ["ecto.create --quiet", "ecto.migrate", "test"]]
end
end