@storybook/sveltekit 7.0.2 → 7.0.4
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 +5 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ However SvelteKit has some [Kit-specific modules](https://kit.svelte.dev/docs/mo
|
|
|
38
38
|
| [`$service-worker`](https://kit.svelte.dev/docs/modules#$service-worker) | ⛔ Not supported | They are only meant to be used in service workers |
|
|
39
39
|
| [`@sveltejs/kit/*`](https://kit.svelte.dev/docs/modules#sveltejs-kit) | ✅ Supported | |
|
|
40
40
|
|
|
41
|
-
This is just the beginning. We're close to adding basic support for many of the SvelteKit features. Longer term we're planning on making it an even better experience to [build](https://storybook.js.org/docs/
|
|
41
|
+
This is just the beginning. We're close to adding basic support for many of the SvelteKit features. Longer term we're planning on making it an even better experience to [build](https://storybook.js.org/docs/svelte/writing-stories/introduction), [test](https://storybook.js.org/docs/svelte/writing-tests/introduction) and [document](https://storybook.js.org/docs/svelte/writing-docs/introduction) all the SvelteKit goodies like [pages](https://kit.svelte.dev/docs/routing), [forms](https://kit.svelte.dev/docs/form-actions) and [layouts](https://kit.svelte.dev/docs/routing#layout) in Storybook, while still integrating with all the addons and workflows you know and love.
|
|
42
42
|
|
|
43
43
|
## Requirements
|
|
44
44
|
|
|
@@ -52,17 +52,17 @@ This is just the beginning. We're close to adding basic support for many of the
|
|
|
52
52
|
Run the following command in your SvelteKit project's root directory, and follow the prompts:
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
npx storybook@
|
|
55
|
+
npx storybook@latest init
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
[More on getting started with Storybook](https://storybook.js.org/docs/
|
|
58
|
+
[More on getting started with Storybook](https://storybook.js.org/docs/svelte/get-started/install)
|
|
59
59
|
|
|
60
60
|
### In a project with Storybook
|
|
61
61
|
|
|
62
62
|
This framework is designed to work with Storybook 7. If you’re not already using v7, upgrade with this command:
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
npx storybook@
|
|
65
|
+
npx storybook@latest upgrade --prerelease
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
#### Automatic migration
|
|
@@ -76,7 +76,7 @@ Storybook 7.0 automatically loads your Vite config, and by extension your Svelte
|
|
|
76
76
|
Install the framework:
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
yarn add -D @storybook/sveltekit
|
|
79
|
+
yarn add -D @storybook/sveltekit
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
Update your `main.js` to change the framework property:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/sveltekit",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Storybook for SvelteKit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@storybook/builder-vite": "7.0.
|
|
55
|
-
"@storybook/svelte": "7.0.
|
|
56
|
-
"@storybook/svelte-vite": "7.0.
|
|
54
|
+
"@storybook/builder-vite": "7.0.4",
|
|
55
|
+
"@storybook/svelte": "7.0.4",
|
|
56
|
+
"@storybook/svelte-vite": "7.0.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^16.0.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
],
|
|
77
77
|
"platform": "node"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "98ddf58dba5ec35963e94a6f01f5043b2c866470"
|
|
80
80
|
}
|