Adds web/scripts/audit-css.mjs — surfaces classes that appear in many rules (likely targets of style drift) and per-class !important counts (specificity-fight indicators). Implements the script suggested by docs/ui/UI_AUDIT.md §5 #7 / Pattern G. Run: pnpm --filter @bytelyst/trading-web run audit:css (or: cd web && npm run audit:css) Initial run on src/index.css + src/App.css + src/layout-fixes.css exposes the top hotspots: - .positions-tab 22 rules, 26 !important - .trade-plans-page 20 rules, 25 !important - .history-tab 17 rules, 22 !important - .trading-sidebar-logo 9 rules, 20 !important These are the targets for the future Pattern G consolidation pass. The script supports --threshold N and --json for tooling. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
91 lines
3.1 KiB
JSON
91 lines
3.1 KiB
JSON
{
|
|
"name": "@bytelyst/trading-web",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "NODE_OPTIONS=--max-old-space-size=8192 tsc -b && NODE_OPTIONS=--max-old-space-size=8192 vite build",
|
|
"typecheck": "tsc -b --pretty false",
|
|
"test": "vitest run",
|
|
"coverage": "vitest run --coverage",
|
|
"coverage:full": "vitest run --coverage --config vitest.full.config.ts",
|
|
"check": "npm run build && npm run lint && npm run format",
|
|
"check:test": "npm run test",
|
|
"pre-deploy": "npm run check && npm run check:test",
|
|
"lint": "eslint .",
|
|
"format": "eslint . --fix",
|
|
"preview": "vite preview",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:e2e:viewport": "playwright test e2e/viewport-matrix.spec.ts",
|
|
"test:e2e:overflow": "playwright test e2e/horizontal-overflow.spec.ts",
|
|
"audit:css": "node scripts/audit-css.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@bytelyst/api-client": "^0.1.6",
|
|
"@bytelyst/design-tokens": "^0.1.6",
|
|
"@bytelyst/errors": "^0.1.7",
|
|
"@bytelyst/kill-switch-client": "^0.1.6",
|
|
"@bytelyst/react-auth": "^0.1.7",
|
|
"@bytelyst/telemetry-client": "^0.1.6",
|
|
"@bytelyst/ui": "^0.1.6",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@monaco-editor/react": "^4.7.0",
|
|
"lucide-react": "^0.562.0",
|
|
"monaco-editor": "^0.55.1",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"react-router-dom": "^7.14.2",
|
|
"recharts": "^3.6.0",
|
|
"socket.io-client": "^4.8.3",
|
|
"@bytelyst/devops": "^0.1.3"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@playwright/test": "^1.59.1",
|
|
"@storybook/addon-essentials": "^8.6.14",
|
|
"@storybook/addon-interactions": "^8.6.14",
|
|
"@storybook/addon-links": "^10.3.6",
|
|
"@storybook/builder-vite": "^10.3.6",
|
|
"@storybook/react": "^10.3.6",
|
|
"@tailwindcss/postcss": "^4.1.18",
|
|
"@tailwindcss/vite": "^4.1.18",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/node": "^24.10.1",
|
|
"@types/react": "^19.2.5",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.1.1",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"agentation": "^2.2.0",
|
|
"autoprefixer": "^10.4.23",
|
|
"eslint": "^9.39.1",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
"globals": "^16.5.0",
|
|
"jsdom": "^28.1.0",
|
|
"postcss": "^8.5.6",
|
|
"storybook": "^10.3.6",
|
|
"tailwindcss": "^4.1.18",
|
|
"typescript": "~5.9.3",
|
|
"typescript-eslint": "^8.46.4",
|
|
"vite": "^7.2.4",
|
|
"vitest": "^4.0.18",
|
|
"@storybook/react-vite": "^10.3.6",
|
|
"@chromatic-com/storybook": "^5.1.2",
|
|
"@storybook/addon-vitest": "^10.3.6",
|
|
"@storybook/addon-a11y": "^10.3.6",
|
|
"@storybook/addon-docs": "^10.3.6",
|
|
"@storybook/addon-onboarding": "^10.3.6",
|
|
"eslint-plugin-storybook": "^10.3.6",
|
|
"playwright": "^1.59.1",
|
|
"@vitest/browser-playwright": "4.1.2"
|
|
}
|
|
}
|