-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
110 lines (101 loc) · 2.92 KB
/
mix.exs
File metadata and controls
110 lines (101 loc) · 2.92 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
defmodule A2UI.MixProject do
use Mix.Project
@version "0.2.0"
@source_url "https://github.com/actioncard/a2ui-elixir"
def project do
[
app: :a2ui,
version: @version,
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
package: package(),
docs: docs(),
name: "A2UI",
description:
"Elixir renderer for the A2UI v0.9 protocol — server-driven UI over Phoenix LiveView",
source_url: @source_url,
homepage_url: @source_url,
dialyzer: [plt_local_path: "priv/plts"]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:dev), do: ["lib", "dev/demo"]
defp elixirc_paths(:test), do: ["lib", "test/support", "dev/demo"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:jason, "~> 1.4"},
{:phoenix_live_view, "~> 1.0"},
{:phoenix_html, "~> 4.0"},
{:floki, "~> 0.36", only: :test},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:bandit, "~> 1.0", only: :dev},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:bun, "~> 2.0", only: [:dev, :test], runtime: false},
{:a2a, "~> 0.2", optional: true},
{:req, "~> 0.5", only: [:dev, :test]}
]
end
def cli do
[preferred_envs: [precommit: :test]]
end
defp aliases do
[
quality: ["format --check-formatted", "credo --strict", "dialyzer"],
precommit: [
"compile --warnings-as-errors",
"deps.unlock --unused",
"format",
"test",
"bun test"
],
"test.js": ["bun test"],
"test.all": ["test", "bun test"],
"test.ci": ["test --warnings-as-errors", "bun test"]
]
end
defp package do
[
name: "a2ui",
maintainers: ["Action Card AB"],
licenses: ["Apache-2.0"],
files:
~w(lib priv/static .formatter.exs mix.exs README.md LICENSE CHANGELOG.md CONTRIBUTING.md SPEC.md),
links: %{
"GitHub" => @source_url,
"A2UI Spec" => "https://a2ui.org/specification/v0.9-a2ui/"
}
]
end
defp docs do
[
main: "A2UI",
extras: ["README.md", "CHANGELOG.md", "CONTRIBUTING.md", "SPEC.md", "LICENSE"],
groups_for_modules: [
Core: [~r/^A2UI$/, A2UI.Agent, A2UI.Connection, A2UI.Catalog],
"Surface & Rendering": [
A2UI.Surface,
A2UI.SurfaceManager,
A2UI.Component,
A2UI.ComponentTree,
A2UI.ComponentRenderer
],
Protocol: [~r/A2UI\.Protocol/],
Components: [~r/A2UI\.Components/],
"Data Model": [~r/A2UI\.DataModel/],
LiveView: [~r/A2UI\.Live/],
Transport: [~r/A2UI\.Transport/],
"Plug (SSE + JSON-RPC)": [~r/A2UI\.Plug/],
"A2A Integration": [A2UI.A2A]
]
]
end
end