@gjsify/example-gtk-adwaita-storybook 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/browser-main.js +4757 -0
- package/dist/gjs.node.mjs +91 -0
- package/dist/index.html +23 -0
- package/package.json +15 -8
package/README.md
CHANGED
|
@@ -27,6 +27,26 @@ gjsify storybook --watch # rebuild + relaunch on change
|
|
|
27
27
|
(application id, window title, the `src` story dir, and `--globals auto`). No per-project
|
|
28
28
|
storybook *app* — just `*.story.ts` files plus the shared renderer.
|
|
29
29
|
|
|
30
|
+
### On Node, Bun and Deno
|
|
31
|
+
|
|
32
|
+
The same window and the same stories on the other three runtimes, with GTK reached through
|
|
33
|
+
[`@gjsify/node-gi`](../../../packages/node-gi/node-gi) instead of GJS:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
gjsify storybook --runtime node # or --runtime bun / --runtime deno
|
|
37
|
+
gjsify showcase adwaita-storybook --runtime bun # without a checkout
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
ONE bundle serves all three (`dist/gjs.node.mjs`), because Node-API is their common native
|
|
41
|
+
ABI — there is no per-runtime build, and `build:node` produces it once. `--runtime gjs`
|
|
42
|
+
builds the separate `--app gjs` bundle.
|
|
43
|
+
|
|
44
|
+
This is not a fourth story format. The stories are renderer-free and this is the same native
|
|
45
|
+
GTK renderer reached over a different bridge; what a runtime has to prove is that the bridge
|
|
46
|
+
holds. All three open the window and claim `org.gjsify.AdwaitaStorybook` on the session bus,
|
|
47
|
+
which is exactly what the DBus harness below drives — so "it works there" is a checkable
|
|
48
|
+
claim, not a build that merely completed.
|
|
49
|
+
|
|
30
50
|
## Debug / drive it over DBus + MCP
|
|
31
51
|
|
|
32
52
|
Launch with the devtools control plane enabled, then drive it from `gdbus`, an MCP client,
|