@storybook/preact-vite 8.5.2 → 8.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -46
- package/package.json +4 -4
package/README.md
CHANGED
@@ -1,47 +1,4 @@
|
|
1
|
-
# Storybook for Preact
|
1
|
+
# Storybook for Preact & Vite
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
- [Preact](https://preactjs.com/) >= 10.x
|
6
|
-
- [Storybook](https://storybook.js.org/) >= 7.x
|
7
|
-
|
8
|
-
## Getting Started
|
9
|
-
|
10
|
-
### In a project without Storybook
|
11
|
-
|
12
|
-
Follow the prompts after running this command in your Preact project's root directory:
|
13
|
-
|
14
|
-
```bash
|
15
|
-
npx storybook@latest init
|
16
|
-
```
|
17
|
-
|
18
|
-
[More on getting started with Storybook](https://storybook.js.org/docs/get-started/install?renderer=preact)
|
19
|
-
|
20
|
-
### In a project with Storybook
|
21
|
-
|
22
|
-
This framework is designed to work with Storybook 7. If you’re not already using v7, upgrade with this command:
|
23
|
-
|
24
|
-
```bash
|
25
|
-
npx storybook@latest upgrade
|
26
|
-
```
|
27
|
-
|
28
|
-
#### Manual migration
|
29
|
-
|
30
|
-
Install the framework:
|
31
|
-
|
32
|
-
```bash
|
33
|
-
yarn add --dev @storybook/preact-vite
|
34
|
-
```
|
35
|
-
|
36
|
-
Update your `main.js` to change the framework property:
|
37
|
-
|
38
|
-
```js
|
39
|
-
// .storybook/main.js
|
40
|
-
export default {
|
41
|
-
// ...
|
42
|
-
framework: {
|
43
|
-
name: '@storybook/preact-vite', // <- Change this
|
44
|
-
options: {},
|
45
|
-
},
|
46
|
-
};
|
47
|
-
```
|
3
|
+
See [documentation](https://storybook.js.org/docs/get-started/frameworks/preact-vite?renderer=preact) for installation instructions, usage examples, APIs, and more.
|
4
|
+
`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact-vite",
|
3
|
-
"version": "8.5.
|
3
|
+
"version": "8.5.3",
|
4
4
|
"description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,8 +47,8 @@
|
|
47
47
|
"prep": "jiti ../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/builder-vite": "8.5.
|
51
|
-
"@storybook/preact": "8.5.
|
50
|
+
"@storybook/builder-vite": "8.5.3",
|
51
|
+
"@storybook/preact": "8.5.3"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"@types/node": "^22.0.0",
|
@@ -57,7 +57,7 @@
|
|
57
57
|
},
|
58
58
|
"peerDependencies": {
|
59
59
|
"preact": ">=10",
|
60
|
-
"storybook": "^8.5.
|
60
|
+
"storybook": "^8.5.3"
|
61
61
|
},
|
62
62
|
"engines": {
|
63
63
|
"node": ">=18.0.0"
|