Packages

Inspecto (Inspect + Ecto) is a utility that helps inspect and summarize your Ecto schemas for documentation or other tools that require convenient reflection.

Current section

Files

Jump to
inspecto mix.exs
Raw

mix.exs

defmodule Inspecto.MixProject do
use Mix.Project
@version "0.2.1"
@source_url "https://github.com/fireproofsocks/inspecto"
defp aliases do
[
lint: ["format --check-formatted", "credo --strict"]
]
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
[
{:excoveralls, "~> 0.14.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.28", runtime: false}
]
end
defp description,
do: """
Inspecto (Inspect + Ecto) is a utility to help inspect and summarize your
Ecto schemas, giving you an overview of the shape of your database.
"""
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def links do
%{
"GitHub" => @source_url,
"Readme" => "#{@source_url}/blob/v#{@version}/README.md",
"Changelog" => "#{@source_url}/blob/v#{@version}/CHANGELOG.md"
}
end
defp package do
[
maintainers: ["Everett Griffiths"],
licenses: ["Apache-2.0"],
logo: "assets/logo.png",
links: links(),
files: [
"lib",
"priv",
"logo.png",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
def project do
[
aliases: aliases(),
app: :inspecto,
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
test_coverage: [
tool: ExCoveralls
],
version: @version,
docs: [
source_ref: "v#{@version}",
logo: "logo.png"
],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test
]
]
end
end