forked from software-mansion/live-debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
152 lines (140 loc) · 4.5 KB
/
Copy pathmix.exs
File metadata and controls
152 lines (140 loc) · 4.5 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
145
146
147
148
149
150
151
152
defmodule LiveDebugger.MixProject do
use Mix.Project
@version "0.7.0-dev"
def project do
[
app: :live_debugger,
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
aliases: aliases(),
package: package(),
name: "LiveDebugger",
source_url: "https://github.com/software-mansion/live-debugger",
description: "Tool for debugging LiveView applications",
docs: docs(),
test_coverage: [
ignore_modules: [~r/^LiveDebuggerDev\./, DevWeb]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :runtime_tools],
mod: {LiveDebugger, []}
]
end
def cli() do
[preferred_envs: [e2e: :test]]
end
defp elixirc_paths(:dev), do: ["lib", "dev"]
defp elixirc_paths(:test),
do: ["lib", "dev", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
setup: [
"deps.get",
"cmd --cd assets/app npm install",
"cmd --cd assets/client npm install",
"assets.setup",
"assets.build:dev"
],
test: ["test --exclude e2e"],
e2e: [&e2e_tests_setup/1, "test --only e2e"],
"e2e_playwright.setup": [
"cmd --cd e2e npm ci",
"cmd --cd e2e npx playwright install --with-deps"
],
e2e_playwright: ["cmd --cd e2e npx playwright test"],
"assets.setup": ["esbuild.install --if-missing", "tailwind.install --if-missing"],
"assets.build:deploy": [
"esbuild build_app_js_deploy",
"esbuild build_client_js_deploy",
"esbuild build_client_css_deploy",
"tailwind build_app_css_deploy"
],
"assets.build:dev": [
"esbuild build_app_js_dev",
"esbuild build_client_js_dev",
"esbuild build_client_css_dev",
"tailwind build_app_css_dev"
]
]
end
defp e2e_tests_setup(_) do
Application.put_env(:live_debugger, :e2e?, true)
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix_live_view, "~> 0.20.8 or ~> 1.0"},
{:phoenix, "~> 1.7"},
{:file_system, "~> 1.0"},
{:igniter, "~> 0.5 and >= 0.5.40", optional: true},
{:bandit, "~> 1.6", only: [:dev, :test]},
{:phoenix_live_reload, "~> 1.5", only: :dev},
{:esbuild, "~> 0.7", only: :dev},
{:tailwind, "~> 0.3", only: :dev},
{:mox, "~> 1.2", only: :test},
{:phx_new, "~> 1.7", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:wallaby, "~> 0.30", runtime: false, only: :test}
]
end
defp docs() do
[
main: "welcome",
logo: "./docs/images/logo.png",
extra_section: "GUIDES",
extras: [
"CHANGELOG.md",
"docs/welcome.md": [title: "Welcome to LiveDebugger"],
"docs/features.md": [title: "Features Overview"],
"docs/config.md": [title: "Configuration"],
"docs/components_tree.md": [title: "Components Tree"],
"docs/assigns_inspection.md": [title: "Assigns Inspection"],
"docs/callback_tracing.md": [title: "Callback Tracing"],
"docs/components_highlighting.md": [title: "Components Highlighting"],
"docs/dead_view_mode.md": [title: "DeadView Mode"],
"docs/elements_inspection.md": [title: "Elements Inspection"]
],
groups_for_extras: [
Features: [
"docs/features.md",
"docs/assigns_inspection.md",
"docs/components_tree.md",
"docs/callback_tracing.md",
"docs/components_highlighting.md",
"docs/dead_view_mode.md",
"docs/elements_inspection.md"
]
],
source_url: "https://github.com/software-mansion/live-debugger",
homepage_url: "https://docs.swmansion.com/live-debugger/",
source_ref: @version,
api_reference: false,
assets: %{
Path.expand("./docs/images") => "images"
},
filter_modules: fn module, _meta ->
module == Mix.Tasks.LiveDebugger.Install
end
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{
"Website" => "https://docs.swmansion.com/live-debugger/",
"GitHub" => "https://github.com/software-mansion/live-debugger",
"Changelog" => "https://hexdocs.pm/live_debugger/changelog.html"
},
files: ~w(lib priv LICENSE mix.exs README.md CHANGELOG.md)
]
end
end