feat: add Storybook for WealthLedger components

This commit is contained in:
2026-09-07 22:22:37 +03:00
parent 9e42148f6a
commit e63fd89a39
18 changed files with 2889 additions and 22 deletions
+9 -2
View File
@@ -8,6 +8,9 @@
},
"scripts": {
"dev": "vite",
"dev:catalog": "storybook dev -p 6006 --no-open --disable-telemetry",
"build:catalog": "storybook build --output-dir storybook-static --disable-telemetry",
"preview:catalog": "vite preview --outDir storybook-static",
"typecheck": "tsc -b --noEmit",
"build": "tsc -b && vite build",
"lint": "biome check .",
@@ -18,9 +21,10 @@
"openapi:check": "node scripts/check-openapi.mjs",
"knip": "knip",
"deps": "depcruise src --config dependency-cruiser.cjs --output-type err-long",
"verify": "npm run openapi:check && npm run typecheck && npm run lint && npm run test:coverage && npm run knip && npm run deps && npm run build",
"verify": "npm run openapi:check && npm run typecheck && npm run lint && npm run test:coverage && npm run knip && npm run deps && npm run deps:storybook && npm run build && npm run build:catalog",
"prepare": "husky",
"preview": "vite preview"
"preview": "vite preview",
"deps:storybook": "depcruise src .storybook/preview.tsx --config .storybook/dependency-cruiser.cjs --output-type err-long"
},
"lint-staged": {
"*.{css,html,json,md,ts,tsx}": "biome format --write"
@@ -47,6 +51,8 @@
"@commitlint/cli": "21.2.2",
"@commitlint/config-conventional": "21.2.2",
"@rolldown/plugin-babel": "0.2.3",
"@storybook/addon-docs": "10.6.0",
"@storybook/react-vite": "10.6.0",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.0",
"@types/node": "24.13.3",
@@ -62,6 +68,7 @@
"lint-staged": "16.2.7",
"msw": "2.15.0",
"openapi-typescript": "7.13.0",
"storybook": "10.6.0",
"typescript": "5.9.3",
"vite": "8.2.0",
"vitest": "4.1.10"