-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmix.exs
More file actions
119 lines (108 loc) · 2.9 KB
/
mix.exs
File metadata and controls
119 lines (108 loc) · 2.9 KB
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
defmodule AshBackpex.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/enoonan/ash_backpex"
def project do
[
app: :ash_backpex,
name: "Ash Backpex",
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
description: description(),
source_url: @source_url,
docs: &docs/0,
aliases: aliases()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
main: "readme",
extras: [
"README.md",
"guides/getting-started.md"
],
groups_for_extras: [
Guides: ~r/guides\/.*/
],
groups_for_modules: [
"LiveResource DSL": [
AshBackpex.LiveResource,
AshBackpex.LiveResource.Dsl,
AshBackpex.LiveResource.Dsl.Field,
AshBackpex.LiveResource.Dsl.Filter,
AshBackpex.LiveResource.Dsl.ItemAction,
AshBackpex.LiveResource.Info
],
Adapter: [
AshBackpex.Adapter
],
Internals: [
AshBackpex.BasicSearch,
AshBackpex.LoadSelectResolver,
AshBackpex.LiveResource.Transformers.GenerateBackpex
]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ash, "~> 3.0"},
{:ash_phoenix, "~> 2.3.14"},
{:backpex, "~> 0.17.0"},
{:spark, "~> 2.0"},
{:phoenix_html, "~> 3.0 or ~> 4.0"},
{:igniter, "~> 0.7.0", override: true},
# Dev/Test dependencies
{:faker, "~> 0.19.0-alpha.1", only: :test},
{:simple_sat, "~> 0.1.3", only: [:dev, :test]},
{:ash_sqlite, "~> 0.1", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:usage_rules, "~> 0.1", only: :dev, runtime: false},
{:sobelow, "~> 0.13", only: [:dev, :test], runtime: false},
{:ex_check, "~> 0.14", only: [:dev, :test]},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
defp package do
[
name: "ash_backpex",
files: ~w(lib mix.exs README.md LICENSE usage-rules.md),
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Ash Framework" => "https://ash-hq.org/",
"Backpex" => "https://backpex.live/"
},
maintainers: ["Eileen Noonan"]
]
end
defp description do
"""
Integration library between Ash Framework and Backpex admin interface (early development).
Provides a DSL for creating admin interfaces for Ash resources.
"""
end
def cli do
[
preferred_envs: [ci: :test]
]
end
defp aliases do
[
credo: "credo --strict",
ci: ["credo --strict", "sobelow", "test"]
]
end
end