-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
143 lines (128 loc) · 3.54 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
defmodule AshPagify.MixProject do
use Mix.Project
@description """
Adds full-text search, scoping, filtering, ordering, and pagination APIs for the Ash Framework.
"""
@version "1.2.1"
def project do
[
app: :ash_pagify,
version: @version,
elixir: "~> 1.17",
deps: deps(),
description: @description,
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
package: package(),
# Dialyzer
dializyer: [plt_add_apps: :mix],
# Docs
source_url: "https://github.com/zebbra/ash_pagify",
homepage_url: "https://hexdocs.pm/ash_pagify",
docs: docs()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application, do: []
# Configuation for the OTP compiler.
#
# Type `mix help compile.elixir` for more information.
defp elixirc_paths(:test), do: elixirc_paths(:dev) ++ ["test/support"]
defp elixirc_paths(_), do: ["lib"]
# Hex package manager configuration.
#
# Type `mix help hex.config` for more information.
def package do
[
name: "ash_pagify",
licenses: ["MIT"],
files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md),
links: %{
"GitHub" => "https://github.com/zebbra/ash_pagify"
}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
extras: [
{"README.md", title: "Home"},
"CHANGELOG.md"
],
skip_undefined_reference_warnings_on: [
"CHANGELOG.md"
],
nest_modules_by_prefix: [
AshPagify.Components,
AshPagify.Error
],
groups_for_modules: [
Core: [
AshPagify,
AshPagify.Guards,
AshPagify.Meta,
AshPagify.Misc,
AshPagify.Tsearch,
AshPagify.Validation
],
Components: [
AshPagify.Components,
~r/AshPagify.Components\./
],
Filters: [
AshPagify.FilterForm
],
Errors: [
AshPagify.Error,
~r/AshPagify.Error\./
]
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Ash Framework
{:ash, "~> 3.3"},
{:ash_phoenix, "~> 2.1"},
{:ash_postgres, "~> 2.1"},
# SAT Solvers
{:picosat_elixir, "~> 0.2", optional: true},
# Phoenix Framework
{:phoenix, "~> 1.7"},
# Testing and Linting
{:ex_check, "~> 0.16", only: [:dev, :test]},
{:credo, "~> 1.7.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4.3", only: [:dev, :test], runtime: false},
{:mix_audit, "~> 2.1.4", only: [:dev, :test], runtime: false},
{:assertions, "~> 0.20.1", only: :test},
{:styler, "~> 1.1", only: [:dev, :test], runtime: false},
{:junit_formatter, "~> 3.3", only: :test},
{:ex_machina, "~> 2.8.0", only: :test},
{:floki, ">= 0.36.0", only: :test},
{:sobelow, "~> 0.13", only: [:dev, :test], runtime: false},
{:git_ops, "~> 2.6.1", only: [:dev]},
{:git_hooks, "~> 0.7.3", only: [:dev], runtime: false},
# Documentation
{:ex_doc, "~> 0.35.1", runtime: false}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
# Setup Project
setup: [
"deps.get",
"check"
]
]
end
end