Files
HMDesign/package.json
shkim4 dc9258599c feat(chart): add @hm-design/chart package with Bar, Line, Donut, Pie, Radar, Area and Radial charts
- new workspace package packages/chart (shadcn/ui Chart + Recharts, HM Theme tokens), examples entry with sample data
- Storybook Chart group (src/chart), consumer example (examples/chart), build:chart / build:chart-example scripts
- README rewritten as the AI usage guide (install, CSS wiring, chart selection, data rules, verification)
- docs: package count/list, Submodule guide (chart workspace, React dedupe), shared AI_GUIDE row, MAINTAINING, story inventory
2026-11-06 15:52:47 +09:00

74 lines
3.6 KiB
JSON

{
"name": "hm-design-system-poc",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"generate:theme-defaults": "node scripts/theme-defaults.mjs",
"build:themes": "node scripts/theme-artifacts.mjs",
"check:theme-defaults": "node scripts/theme-defaults.mjs --check",
"pretypecheck": "npm run check:theme-defaults && npm run build:packages",
"prebuild": "npm run check:theme-defaults && npm run build:packages",
"prebuild-storybook": "npm run check:theme-defaults && npm run build:packages",
"dev": "vite --host 127.0.0.1",
"dev:publisher-example": "vite --config examples/publisher-list/vite.config.ts",
"build:publisher-example": "vite build --config examples/publisher-list/vite.config.ts",
"test:components": "node --test scripts/publisher-components.test.mjs",
"test:guard": "node --test scripts/ai-generation-guard.test.mjs",
"sync:ai-docs": "node scripts/ai-docs.mjs --sync",
"check:ai-docs": "node scripts/ai-docs.mjs --check",
"build": "tsc -b && vite build",
"build:dashboard-export": "npm run check:theme-defaults && npm run build:packages && vite build --config vite.dashboard-export.config.ts && node scripts/finalize-dashboard-export.mjs",
"h2:preview": "node scripts/h2-preview.mjs",
"preview": "vite preview --host 127.0.0.1",
"storybook": "storybook dev -p 6024 --host 0.0.0.0 --no-open --disable-telemetry",
"build-storybook": "storybook build -o storybook-static --disable-telemetry",
"typecheck": "tsc -b && npm run typecheck --workspaces --if-present",
"build:ui": "npm run build -w @hm-design/ui",
"build:center-graphic": "npm run build -w @hm-design/center-graphic",
"build:chart": "npm run build -w @hm-design/chart",
"build:chart-example": "vite build --config examples/chart/vite.config.ts",
"dev:chart-example": "vite --config examples/chart/vite.config.ts",
"build:org-chart": "npm run build -w @hm-design/org-chart",
"typecheck:org-chart": "npm run typecheck -w @hm-design/org-chart",
"test:org-chart": "npm run test -w @hm-design/org-chart",
"build:org-chart-example": "npm run build:org-chart && node examples/org-chart/prepare.mjs",
"dev:org-chart-example": "node examples/org-chart/serve.mjs",
"test:org-chart-browser": "node examples/org-chart/verify.mjs",
"build:org-chart-react": "npm run build -w @hm-design/org-chart-react",
"build:sw": "npm run build -w @hm-design/sw",
"typecheck:sw": "npm run typecheck -w @hm-design/sw",
"typecheck:org-chart-react": "npm run typecheck -w @hm-design/org-chart-react",
"build:org-chart-react-example": "vite build --config examples/org-chart-react/vite.config.ts",
"dev:org-chart-react-example": "vite --config examples/org-chart-react/vite.config.ts",
"test:org-chart-react-browser": "node examples/org-chart-react/verify.mjs",
"build:packages": "npm run build:org-chart && npm run build:ui && npm run build:center-graphic && npm run build:chart && npm run build:org-chart-react && npm run build:sw"
},
"dependencies": {
"@hm-design/org-chart": "*",
"@hm-design/org-chart-react": "*",
"@hm-design/center-graphic": "*",
"@hm-design/chart": "*",
"@hm-design/sw": "*",
"@hm-design/ui": "*",
"lucide-react": "^1.49.0",
"react": "19.3.0",
"react-dom": "19.3.0"
},
"devDependencies": {
"@storybook/react-vite": "10.6.1",
"@tailwindcss/vite": "4.3.3",
"@types/node": "24.7.0",
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"@vitejs/plugin-react": "6.1.1",
"storybook": "10.6.1",
"tailwindcss": "4.3.3",
"typescript": "7.0.2",
"vite": "8.3.0"
},
"workspaces": [
"packages/*"
]
}