Commit 314bd79
committed
refactor(examples): standardize devframe tool examples to app/ + src/node/ + playgrounds/
Apply the built-in plugin layout to the five examples that define a devframe:
- files-inspector, streaming-chat (Preact): app/ = SPA, src/node/ = definition + rpc,
playgrounds/ boots the built tool; dev serves the app with HMR + a live node bridge,
play builds then runs the playground
- sse-basic: extract the inline definition into src/node/, move the client into app/,
keep the SSE-only bridge; add dev/play
- next-runtime-snapshot (Next): app/ = the Next app, src/node/ = definition + rpc,
scripts/build-spa.mjs uses a mode-explicit recursive copy; add playgrounds/ + play
- json-render (no own SPA, reuses the prebuilt UI): consolidate the definition, dashboard,
and shared code under src/node/; retarget the ./ and ./dashboard exports
- update json-render/dashboard alias, tsconfig.base paths, and the next-runtime-snapshot
knip postcss config
The framework HOST examples (hub-*, a11y-messages-playground, demo-dock-client) mount
devframes rather than defining one, so they keep their framework-idiomatic layouts.1 parent 0abf43f commit 314bd79
86 files changed
Lines changed: 632 additions & 226 deletions
File tree
- examples
- files-inspector
- app
- routes
- playgrounds
- src
- client
- node
- rpc
- functions
- tests
- json-render
- src/node
- next-runtime-snapshot
- app
- app
- components
- playgrounds
- scripts
- src
- client
- node
- rpc
- functions
- tests
- sse-basic
- app
- playgrounds
- src/node
- streaming-chat
- app
- playgrounds
- src
- client
- node
- rpc
- functions
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments