-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathmix.exs
More file actions
144 lines (133 loc) · 4.24 KB
/
Copy pathmix.exs
File metadata and controls
144 lines (133 loc) · 4.24 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
defmodule Tidewave.MixProject do
use Mix.Project
@source_url "https://github.com/tidewave-ai/tidewave_phoenix"
@homepage_url "https://tidewave.ai/"
@version "0.8.0"
def project do
[
app: :tidewave,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
elixirc_paths: if(Mix.env() == :test, do: ["lib", "test/support"], else: ["lib"]),
aliases: [
tidewave:
"run --no-halt -e 'Agent.start(fn -> Bandit.start_link(plug: Tidewave, port: 4000) end)'"
],
# Docs
name: "Tidewave",
source_url: @source_url,
homepage_url: @homepage_url,
docs: &docs/0
]
end
def application do
[
mod: {Tidewave.Application, []},
extra_applications: [:logger]
]
end
defp package do
[
description: "Tidewave for Phoenix",
maintainers: ["Steffen Deusch"],
licenses: ["Apache-2.0"],
links: %{
"Tidewave" => @homepage_url,
"GitHub" => @source_url
}
]
end
defp deps do
[
{:plug, "~> 1.18"},
{:jason, "~> 1.4"},
{:circular_buffer, "~> 0.4 or ~> 1.0"},
{:igniter, "~> 0.6", optional: true},
# Required for the browser control page to upgrade /tidewave/ws to a
# plain WebSocket. Works with both Bandit and Plug.Cowboy.
{:websock_adapter, "~> 0.5"},
# We require v1.6.1 to detect if phoenix live reload is running too early or late
{:phoenix_live_reload, ">= 1.6.1", optional: true},
# We require 2.9 for get_sock_data
{:plug_cowboy, "~> 2.9", optional: true},
# Dev deps
{:bandit, "~> 1.10", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev},
{:makeup_syntect, ">= 0.0.0", only: :dev}
]
end
defp docs do
[
api_reference: false,
main: "installation",
logo: "logo.svg",
footer: false,
assets: %{"pages/assets" => "assets"},
filter_modules: fn mod, _ ->
raise "you forgot to add \"@moduledoc false\" to #{inspect(mod)}"
end,
extras: [
"pages/installation.md",
"pages/features/accessibility.md",
"pages/features/browser_app.md",
"pages/features/code_review.md",
"pages/features/git.md",
"pages/features/inspector.md",
"pages/features/mermaid.md",
"pages/features/notifications.md",
"pages/features/spaces.md",
"pages/features/task_board.md",
"pages/features/teams.md",
"pages/features/ui_variants.md",
"pages/features/viewport.md",
"pages/features/vision_mode.md",
"pages/features/voice_input.md",
"pages/providers/claude_code.md",
"pages/providers/github_copilot.md",
"pages/providers/codex.md",
"pages/providers/opencode.md",
"pages/providers/third_party.md",
"pages/integrations/editors.md",
"pages/integrations/figma.md",
"pages/integrations/frontend.md",
"pages/guides/containers.md",
"pages/guides/custom_domains.md",
"pages/guides/https.md",
"pages/guides/prompting_tips.md",
"pages/guides/security.md",
"pages/guides/remote_access.md",
"pages/mcp/mcp.md",
"pages/mcp/mcp_claude_code.md",
"pages/mcp/mcp_cursor.md",
"pages/mcp/mcp_neovim.md",
"pages/mcp/mcp_codex.md",
"pages/mcp/mcp_opencode.md",
"pages/mcp/mcp_vscode.md",
"pages/mcp/mcp_zed.md"
],
groups_for_extras: [
Providers: ~r/(pages\/providers\/.?)/,
Features: ~r/(pages\/features\/.?)/,
Integrations: ~r/(pages\/integrations\/.?)/,
Guides: ~r/(pages\/guides\/.?)/,
MCP: ~r/pages\/mcp\/.?/
],
redirects: %{
"react" => "frontend",
"vue" => "frontend",
"mcp_troubleshooting" => "mcp",
"providers" => "installation",
"tips_and_tricks" => "prompting_tips",
"subdomains" => "custom_domains"
},
before_closing_head_tag: fn _ ->
# Hide version nodes to avoid confusion between TidewaveApp and TidewavePhoenix.
# But we still keep go to latest.
"<style>.sidebar-projectVersion form label { display: none; }</style>"
end
]
end
end