feat(web): set up Storybook (preview + MSW + stories for real components)
This commit is contained in:
+21
-2
@@ -13,7 +13,9 @@
|
||||
"typecheck": "tsc -b --noEmit",
|
||||
"lint": "eslint .",
|
||||
"gen:api": "openapi-typescript http://localhost:8080/api-docs/openapi.json -o src/api/schema.d.ts",
|
||||
"check:size": "node scripts/check-bundle-size.mjs"
|
||||
"check:size": "node scripts/check-bundle-size.mjs",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@base-ui/react": "^1.5.0",
|
||||
@@ -33,7 +35,13 @@
|
||||
"tw-animate-css": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@chromatic-com/storybook": "^5.2.1",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@storybook/addon-a11y": "^10.4.2",
|
||||
"@storybook/addon-docs": "^10.4.2",
|
||||
"@storybook/addon-mcp": "^0.6.0",
|
||||
"@storybook/addon-vitest": "^10.4.2",
|
||||
"@storybook/react-vite": "^10.4.2",
|
||||
"@tailwindcss/vite": "^4.3.0",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/react": "^16.3.0",
|
||||
@@ -42,18 +50,29 @@
|
||||
"@types/react": "^19.1.5",
|
||||
"@types/react-dom": "^19.1.3",
|
||||
"@vitejs/plugin-react": "^4.5.2",
|
||||
"@vitest/browser": "3.2.6",
|
||||
"@vitest/coverage-v8": "3.2.6",
|
||||
"eslint": "^10.4.1",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
"eslint-plugin-react-refresh": "^0.5.2",
|
||||
"eslint-plugin-storybook": "^10.4.2",
|
||||
"globals": "^17.6.0",
|
||||
"jsdom": "^26.1.0",
|
||||
"msw": "^2.14.6",
|
||||
"msw-storybook-addon": "^2.0.7",
|
||||
"openapi-typescript": "^7.13.0",
|
||||
"playwright": "^1.60.0",
|
||||
"shadcn": "^4.10.0",
|
||||
"storybook": "^10.4.2",
|
||||
"tailwindcss": "^4.3.0",
|
||||
"typescript": "~5.8.3",
|
||||
"typescript-eslint": "^8.60.1",
|
||||
"vite": "^6.3.5",
|
||||
"vitest": "^3.2.2"
|
||||
},
|
||||
"msw": {
|
||||
"workerDirectory": [
|
||||
"public"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user