@poveste/plugin-quasar 0.19.0 → 0.19.1

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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -6,9 +6,10 @@ Builds a Poveste book inside a Quasar project.
6
6
  pnpm add -D poveste @poveste/plugin-vue @poveste/plugin-quasar
7
7
  ```
8
8
 
9
- Add both plugins in poveste config:
9
+ Add both plugins in poveste config, with a setup file:
10
10
 
11
11
  ```ts
12
+ // poveste.config.ts
12
13
  import { HstQuasar } from '@poveste/plugin-quasar'
13
14
  import { HstVue } from '@poveste/plugin-vue'
14
15
  import { defineConfig } from 'poveste'
@@ -18,9 +19,20 @@ export default defineConfig({
18
19
  HstVue(),
19
20
  HstQuasar(),
20
21
  ],
22
+ setupFile: '/src/poveste.setup.ts',
21
23
  })
22
24
  ```
23
25
 
26
+ The setup file installs Quasar into the app Poveste renders your stories in, and every Quasar component needs it, not only boot files. Without it the book still builds, and each story that uses a Quasar component shows "This component threw while rendering", with `Cannot read properties of undefined (reading 'platform')` in the browser console.
27
+
28
+ ```ts
29
+ // src/poveste.setup.ts
30
+ import { setupQuasar } from '@poveste/plugin-quasar/setup'
31
+ import { defineSetupVue } from '@poveste/plugin-vue'
32
+
33
+ export const setupVue = defineSetupVue(setupQuasar())
34
+ ```
35
+
24
36
  Quasar builds its Vite config asynchronously and exposes it through an
25
37
  entrypoint whose own header says it is for tooling. This plugin fetches it and
26
38
  makes the two adjustments a book needs — both of which are easy to get wrong and
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@poveste/plugin-quasar",
3
3
  "type": "module",
4
- "version": "0.19.0",
4
+ "version": "0.19.1",
5
5
  "description": "Poveste plugin that builds a book inside a Quasar project",
6
6
  "author": {
7
7
  "name": "Sorin Gitlan",
@@ -52,18 +52,18 @@
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@quasar/app-vite": "^3.8.0",
55
- "poveste": "^0.19.0",
55
+ "poveste": "^0.19.1",
56
56
  "quasar": "^2.24.0",
57
57
  "vue": "^3.5.43"
58
58
  },
59
59
  "dependencies": {
60
- "@poveste/shared": "0.19.0",
60
+ "@poveste/shared": "0.19.1",
61
61
  "pathe": "^2.0.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@quasar/app-vite": "^3.10.0",
65
65
  "@types/node": "^26.6.3",
66
- "poveste": "0.19.0",
66
+ "poveste": "0.19.1",
67
67
  "quasar": "^2.33.2",
68
68
  "typescript": "6.0.3",
69
69
  "vite": "^8.3.1",