@poveste/plugin-vue 0.4.0 → 0.5.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 +44 -0
  2. package/package.json +6 -6
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # Poveste + Vue 3
2
+
3
+ Requires `vue@^3.5.26`.
4
+
5
+ ```bash
6
+ pnpm add -D poveste @poveste/plugin-vue
7
+ ```
8
+
9
+ Register the plugin in your Poveste config:
10
+
11
+ ```ts
12
+ import { HstVue } from '@poveste/plugin-vue'
13
+ import { defineConfig } from 'poveste'
14
+
15
+ export default defineConfig({
16
+ plugins: [
17
+ HstVue(),
18
+ ],
19
+ })
20
+ ```
21
+
22
+ Write stories as `*.story.vue`:
23
+
24
+ ```vue
25
+ <script setup>
26
+ import MyButton from './MyButton.vue'
27
+ </script>
28
+
29
+ <template>
30
+ <Story title="MyButton">
31
+ <Variant title="default">
32
+ <MyButton />
33
+ </Variant>
34
+ </Story>
35
+ </template>
36
+ ```
37
+
38
+ `<Story>` and `<Variant>` are registered globally — no import needed.
39
+
40
+ Coming from histoire? The Vue API is unchanged: swap the dependency and your existing
41
+ `.story.vue` files keep working.
42
+
43
+ [Vue guide](https://poveste.dev/guide/vue/getting-started.html) ·
44
+ [Documentation](https://poveste.dev)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@poveste/plugin-vue",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.5.1",
5
5
  "description": "Poveste plugin for Vue.js support",
6
6
  "author": {
7
7
  "name": "Sorin Gitlan"
@@ -44,16 +44,16 @@
44
44
  "types": "dist/index.node.d.ts",
45
45
  "peerDependencies": {
46
46
  "vue": "^3.5.26",
47
- "poveste": "^0.4.0"
47
+ "poveste": "^0.5.1"
48
48
  },
49
49
  "dependencies": {
50
50
  "change-case": "^5.4.4",
51
51
  "globby": "^14.0.2",
52
52
  "launch-editor": "^2.9.1",
53
53
  "pathe": "^1.1.2",
54
- "@poveste/controls": "^0.4.0",
55
- "@poveste/vendors": "^0.4.0",
56
- "@poveste/shared": "^0.4.0"
54
+ "@poveste/controls": "^0.5.1",
55
+ "@poveste/shared": "^0.5.1",
56
+ "@poveste/vendors": "^0.5.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/node": "^22.10.1",
@@ -62,7 +62,7 @@
62
62
  "vite": "^8.2.0",
63
63
  "vitest": "^4.1.10",
64
64
  "vue": "^3.5.26",
65
- "poveste": "0.4.0"
65
+ "poveste": "0.5.1"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "rimraf dist && vite build && tsc -d -P tsconfig.build.json && pnpm run build:types",