defmodule EctoPostgresJson.MixProject do use Mix.Project @version "0.1.0" def project do [ app: :ecto_postgres_json, version: @version, elixir: "~> 1.13", test_coverage: [tool: ExCoveralls], preferred_cli_env: preferred_cli_env(), description: description(), package: package(), docs: docs(), aliases: aliases(), deps: deps() ] end # 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 [ {:ecto_sql, "~> 3.8.1"}, {:ex_doc, "~> 0.14", only: :dev, runtime: false}, {:credo, "~> 1.1", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.12", only: :test}, {:mix_audit, "~> 0.1", only: [:dev, :test], runtime: false} ] end defp package() do [ name: "ecto_postgres_json", files: ~w(lib .formatter.exs mix.exs README* LICENSE*), licenses: ["MIT"], maintainers: ["Eduardo Moraga"], links: %{"GitHub" => "https://github.com/emoragaf/ecto_postgres_json"} ] end defp docs() do [ main: "readme", name: "EctoPostgresJSON", source_ref: "v#{@version}", canonical: "https://hexdocs.pm/ecto_postgres_json", source_url: "https://github.com/emoragaf/ecto_postgres_json", extras: [ "README.md" ] ] end defp preferred_cli_env do [ "check.all": :test, coveralls: :test, "coveralls.detail": :test, "coveralls.html": :test, "coveralls.json": :test, "coveralls.post": :test, "coveralls.xml": :test ] end defp aliases do [ "check.all": [ "format --check-formatted --dry-run", "credo", "coveralls.html", "deps.audit" ] ] end defp description, do: "Utilities for working with Postgres JSONb columns in Ecto" end