ash_graphql/mix.exs

91 lines
2.2 KiB
Elixir
Raw Normal View History

2020-05-02 04:32:56 +12:00
defmodule AshGraphql.MixProject do
use Mix.Project
2020-08-14 10:55:34 +12:00
@description """
An absinthe-backed graphql extension for Ash
"""
2020-08-27 06:05:15 +12:00
@version "0.2.1"
2020-08-14 10:55:34 +12:00
2020-05-02 04:32:56 +12:00
def project do
[
app: :ash_graphql,
2020-08-14 10:55:34 +12:00
version: @version,
2020-05-02 04:32:56 +12:00
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
2020-08-14 10:55:34 +12:00
package: package(),
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.github": :test
],
docs: docs(),
description: @description,
source_url: "https://github.com/ash-project/ash_graphql",
homepage_url: "https://github.com/ash-project/ash_graphql"
]
end
defp docs do
[
main: "AshGraphql",
source_ref: "v#{@version}",
logo: "logos/small-logo.png",
extra_section: "GUIDES",
extras: [
"documentation/introduction/getting_started.md"
],
groups_for_extras: [
Introduction: Path.wildcard("documentation/introduction/*.md")
],
groups_for_modules: [
"Resource DSL": ~r/AshGraphql.Resource/,
"Api DSL": ~r/AshGraphql.Api/
]
]
end
defp package do
[
name: :ash_graphql,
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/ash-project/ash_graphql"
}
2020-05-02 04:32:56 +12:00
]
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
[
2020-08-18 17:54:52 +12:00
{:ash, "~> 1.8"},
2020-08-14 09:39:59 +12:00
{:absinthe, "~> 1.5.2"},
{:jason, "~> 1.2"},
2020-08-14 10:55:34 +12:00
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
{:ex_check, "~> 0.11.0", only: :dev},
{:credo, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
{:sobelow, ">= 0.0.0", only: :dev, runtime: false},
{:git_ops, "~> 2.0.1", only: :dev},
{:excoveralls, "~> 0.13.0", only: [:dev, :test]}
2020-05-02 04:32:56 +12:00
]
end
2020-08-14 09:39:59 +12:00
2020-08-14 10:55:34 +12:00
defp aliases do
[
sobelow: "sobelow --skip",
credo: "credo --strict",
"ash.formatter": "ash.formatter --extensions AshGraphql.Resource,AshGraphql.Api"
]
end
end