ash_graphql/mix.exs

113 lines
2.7 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
"""
2021-01-22 17:09:11 +13:00
@version "0.11.0-rc0"
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(),
2020-12-02 18:07:15 +13:00
elixirc_paths: elixirc_paths(Mix.env()),
2020-09-24 12:54:57 +12:00
dialyzer: [plt_add_apps: [:ash]],
2020-08-14 10:55:34 +12:00
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
2020-12-02 18:07:15 +13:00
defp elixirc_paths(:test) do
elixirc_paths(:dev) ++ ["test/support"]
end
defp elixirc_paths(_) do
["lib"]
end
2020-08-14 10:55:34 +12:00
defp docs do
[
main: "AshGraphql",
source_ref: "v#{@version}",
logo: "logos/small-logo.png",
extra_section: "GUIDES",
extras: [
2020-10-28 19:19:24 +13:00
"documentation/introduction/getting_started.md",
"documentation/multitenancy.md"
2020-08-14 10:55:34 +12:00
],
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
[
{:ash, ash_version("~> 1.29.0-rc1")},
2020-12-01 12:17:00 +13:00
{:absinthe_plug, "~> 1.4"},
2020-09-24 12:54:57 +12:00
{:absinthe, "~> 1.5.3"},
{:dataloader, "~> 1.0"},
2020-08-14 09:39:59 +12:00
{:jason, "~> 1.2"},
2020-08-14 10:55:34 +12:00
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
2020-08-26 07:33:11 +12:00
{:ex_check, "~> 0.12.0", only: :dev},
2020-08-14 10:55:34 +12:00
{: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-26 07:33:11 +12:00
defp ash_version(default_version) do
case System.get_env("ASH_VERSION") do
nil -> default_version
"local" -> [path: "../ash"]
"master" -> [git: "https://github.com/ash-project/ash.git"]
version -> "~> #{version}"
end
end
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