Skip to content

Commit

Permalink
Migrate to Storybook 8.2.6 (#8835)
Browse files Browse the repository at this point in the history
### Description

This upgrades the `design-system/apps/docs` example to latest stable
Storybook version following the [migration
guide](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#framework-specific-vite-plugins-have-to-be-explicitly-added)
from Storybook.

### Testing Instructions

1. `cd examples/design-system`
2. `pnpm install`
3. `pnpm dev`
4. view Storybook instance
  • Loading branch information
joeblas authored Aug 8, 2024
1 parent c8fba08 commit 60174ed
Show file tree
Hide file tree
Showing 4 changed files with 378 additions and 2,467 deletions.
2 changes: 1 addition & 1 deletion docs/repo-docs/reference/watch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This means that persistent tasks will be ignored when using `turbo watch`, worki

### Dependency-aware persistent tasks

When your script has a built-in watcher (like `next dev`) capable of detecting changes in dependencies, you don't need to use `turbo watch`. Instead, use your script's built-in watcher and mark the task as long-running using [`"persistent": true`](/repo/docs/reference/configuration#persistent).
When your script has a built-in watcher (like `next dev`) capable of detecting changes in dependencies, you don't need to use `turbo watch`. Instead, use your script's built-in watcher and mark the task as long-running using [`"persistent": true`](/repo/docs/reference/configuration#persistent).

### Persistent tasks without dependency awareness

Expand Down
12 changes: 6 additions & 6 deletions examples/design-system/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
"@storybook/react": "^7.6.17",
"@storybook/react-vite": "^7.6.17",
"@storybook/addon-actions": "^8.2.6",
"@storybook/addon-essentials": "^8.2.6",
"@storybook/addon-links": "^8.2.6",
"@storybook/react": "^8.2.6",
"@storybook/react-vite": "^8.2.6",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"serve": "^14.2.1",
"storybook": "^7.6.17",
"storybook": "^8.2.6",
"@repo/typescript-config": "workspace:*",
"typescript": "^5.3.3",
"vite": "^5.1.4"
Expand Down
6 changes: 6 additions & 0 deletions examples/design-system/apps/docs/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
plugins: [react()],
});
Loading

0 comments on commit 60174ed

Please sign in to comment.