@pygmalionjs/pygmalion 0.2.13 → 0.2.15
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 +12 -0
- package/dist-lib/{App-BpS2IDVb.js → App-CiSnd2mV.js} +1585 -1562
- package/dist-lib/pygmalion.js +446 -445
- package/dist-lib/testing.js +1 -1
- package/node/design-session.mjs +15 -1
- package/node/dev-mirror.mjs +23 -0
- package/node/vite.mjs +2 -0
- package/package.json +1 -1
- package/types.d.ts +6 -0
- package/vite.d.ts +9 -0
package/README.md
CHANGED
|
@@ -86,6 +86,18 @@ When the mirror preview reloads the host Vite configuration,
|
|
|
86
86
|
`PYGMALION_PREVIEW_MODE=1` prevents the integration plugins from starting
|
|
87
87
|
recursively.
|
|
88
88
|
|
|
89
|
+
Mirror and session previews run as their own Vite processes, so the mode you
|
|
90
|
+
pass to the editor does not reach them. Set `preview.mode` when a screen only
|
|
91
|
+
exists under a specific env file — a feature flag that has to be off, a mock
|
|
92
|
+
profile a recipe depends on:
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
export default definePygmalionProject({
|
|
96
|
+
// ...
|
|
97
|
+
preview: { mode: "e2e" },
|
|
98
|
+
});
|
|
99
|
+
```
|
|
100
|
+
|
|
89
101
|
## Register screens and scenarios
|
|
90
102
|
|
|
91
103
|
The host owns application-specific routes, fixtures, authentication, mock data,
|