Skip to content

Commit c08cb77

Browse files
committed
docs: mount a dev-only devframe hub with a11y and og
1 parent 73e6c20 commit c08cb77

5 files changed

Lines changed: 43 additions & 3 deletions

File tree

‎docs/nuxt.config.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ export default defineNuxtConfig({
3131
},
3232
},
3333

34+
// Dev only: production builds never resolve the hub or its devframes.
35+
// Factories defer the plugin imports, so `docs:build` needs no built workspace packages.
36+
$development: {
37+
modules: [['@devframes/nuxt/hub', {
38+
quiet: true,
39+
devframes: [
40+
() => import('@devframes/plugin-a11y').then(m => m.createA11yDevframe()),
41+
() => import('@devframes/plugin-og').then(m => m.createOgDevframe({ defaultUrl: 'http://localhost:5175' })),
42+
],
43+
}]],
44+
},
45+
3446
app: {
3547
head: {
3648
link: [

‎docs/package.json‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
"shiki": "catalog:deps"
2525
},
2626
"devDependencies": {
27-
"@types/d3-shape": "catalog:types"
27+
"@devframes/hub": "workspace:*",
28+
"@devframes/hub-ui": "workspace:*",
29+
"@devframes/nuxt": "workspace:*",
30+
"@devframes/plugin-a11y": "workspace:*",
31+
"@devframes/plugin-og": "workspace:*",
32+
"@types/d3-shape": "catalog:types",
33+
"devframe": "workspace:*"
2834
}
2935
}

‎knip.jsonc‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151
// referenced as the `@shikijs/magic-move/style.css` subpath in the
5252
// `nuxt.config.ts` `css` array; knip can't map that CSS-only subpath back
5353
// to the package, so it mis-reports the (genuinely-listed) dep as unlisted.
54-
"ignoreDependencies": ["ai", "@ai-sdk/vue", "@comark/nuxt.*", "@nuxt/ui.*", "@shikijs/magic-move"]
54+
//
55+
// `@devframes/nuxt` is named as a string in the `$development.modules`
56+
// array, and `@devframes/hub` / `@devframes/hub-ui` are its optional
57+
// peers (the dev hub and its default dock UI), so nothing imports them.
58+
"ignoreDependencies": ["ai", "@ai-sdk/vue", "@comark/nuxt.*", "@nuxt/ui.*", "@shikijs/magic-move", "@devframes/nuxt", "@devframes/hub", "@devframes/hub-ui"]
5559
},
5660
"examples/custom-hub-next": {
5761
// The React client build's root sits at `src/client` (`next dev

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"watch": "turbo watch build --concurrency=3",
2121
"play": "tsx scripts/play.ts",
2222
"dev": "tsx scripts/play.ts",
23-
"docs": "pnpm -C docs run docs",
23+
"docs": "turbo run build --filter=devframe-docs^... && pnpm -C docs run docs",
2424
"docs:build": "pnpm -C docs run docs:build",
2525
"docs:serve": "pnpm -C docs run docs:serve",
2626
"storybook": "pnpm -C storybook dev",

‎pnpm-lock.yaml‎

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)