Skip to content

Commit 75b7649

Browse files
committed
refactor: move a11y inspector to plugins/a11y
Reclassify the accessibility inspector as a first-party plugin: relocate it from examples/a11y-inspector to plugins/a11y, add a plugins/* workspace glob, and rename the package to @devframes/a11y. Updates the turbo tasks, the vitest project entry, and the in-tree path references to match.
1 parent 10eda87 commit 75b7649

32 files changed

Lines changed: 45 additions & 45 deletions
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ The demo serves an intentionally-broken host page and the panel from **one
3636
origin** so they share the channel.
3737

3838
```sh
39-
pnpm -C examples/a11y-inspector build # build the panel + the agent bundle
40-
pnpm -C examples/a11y-inspector demo # dev: live WebSocket RPC → http://localhost:4477/
39+
pnpm -C plugins/a11y build # build the panel + the agent bundle
40+
pnpm -C plugins/a11y demo # dev: live WebSocket RPC → http://localhost:4477/
4141

42-
pnpm -C examples/a11y-inspector cli:build # bake the static deploy (dist/static)
43-
pnpm -C examples/a11y-inspector demo:build # static: baked RPC dump, no server
42+
pnpm -C plugins/a11y cli:build # bake the static deploy (dist/static)
43+
pnpm -C plugins/a11y demo:build # static: baked RPC dump, no server
4444
```
4545

4646
Open the URL, then hover any row in the panel — the matching element in the page
@@ -50,7 +50,7 @@ behave identically; the panel's `websocket` / `static` tag is the only tell.
5050
Standalone, without a host app:
5151

5252
```sh
53-
pnpm -C examples/a11y-inspector dev # panel only, at /__devframe-a11y-inspector/
53+
pnpm -C plugins/a11y dev # panel only, at /__devframe-a11y-inspector/
5454
```
5555

5656
## File map
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ function banner(origin) {
5656
}
5757

5858
async function main() {
59-
requireBuilt(resolve(injectDir, 'inject.js'), 'pnpm -C examples/a11y-inspector build')
59+
requireBuilt(resolve(injectDir, 'inject.js'), 'pnpm -C plugins/a11y build')
6060
requireBuilt(
6161
resolve(panelDir, 'index.html'),
6262
mode === 'build'
63-
? 'pnpm -C examples/a11y-inspector build && pnpm -C examples/a11y-inspector cli:build'
64-
: 'pnpm -C examples/a11y-inspector build',
63+
? 'pnpm -C plugins/a11y build && pnpm -C plugins/a11y cli:build'
64+
: 'pnpm -C plugins/a11y build',
6565
)
6666

6767
const bindHost = '0.0.0.0'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "a11y-inspector-example",
2+
"name": "@devframes/a11y",
33
"type": "module",
44
"version": "0.5.2",
55
"private": true,
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/a11y-inspector/src/client/components/violations.tsx renamed to plugins/a11y/src/client/components/violations.tsx

File renamed without changes.

0 commit comments

Comments
 (0)