scripts/generate-docs-index.mjs walks docs/**/*.md, parses YAML front-matter (or first H1 fallback) and a Nygard-style ## Status section, then writes docs/INDEX.md with grouped tables for ADRs, Specs, Plans (with archive subsection), Patterns, and Other. Pure Node 20 (no external deps); idempotent — running it twice produces byte-identical output. Excludes adr/templates/, the ADR README, INDEX.md itself, and any *_*.md sidecar file. Wire-up: - package.json: docs:index → node scripts/generate-docs-index.mjs Initial run indexed 35 docs across the existing structure; the generated INDEX.md is committed so the table is reviewable in the PR before hooking generation into a pre-commit step.
88 lines
2.5 KiB
JSON
88 lines
2.5 KiB
JSON
{
|
|
"name": "scrum4me",
|
|
"version": "0.4.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"predev": "npx --yes kill-port 3000 || exit 0",
|
|
"dev": "next dev -p 3000",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"prepare": "husky",
|
|
"postinstall": "prisma generate --generator client",
|
|
"db:erd": "prisma generate",
|
|
"db:erd:watch": "chokidar \"prisma/schema.prisma\" -c \"npm run db:erd\"",
|
|
"db:insert-milestone": "tsx scripts/insert-milestone.ts",
|
|
"seed": "prisma db seed",
|
|
"docs:index": "node scripts/generate-docs-index.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "^1.4.1",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^8.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@prisma/adapter-pg": "^7.8.0",
|
|
"@prisma/client": "^7.8.0",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"@vercel/analytics": "^2.0.1",
|
|
"bcryptjs": "^2.4.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"dotenv": "^17.4.2",
|
|
"iron-session": "^8.0.4",
|
|
"lucide-react": "^1.8.0",
|
|
"next": "16.2.4",
|
|
"next-themes": "^0.4.6",
|
|
"pg": "^8.20.0",
|
|
"prisma": "^7.8.0",
|
|
"qrcode.react": "^4.2.0",
|
|
"react": "19.2.4",
|
|
"react-dom": "19.2.4",
|
|
"react-hook-form": "^7.74.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-textarea-autosize": "^8.5.9",
|
|
"recharts": "^3.8.1",
|
|
"remark-gfm": "^4.0.1",
|
|
"shadcn": "^4.4.0",
|
|
"sharp": "^0.34.5",
|
|
"sonner": "^1.7.4",
|
|
"tailwind-merge": "^3.5.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"zod": "^3.25.76",
|
|
"zustand": "^5.0.12"
|
|
},
|
|
"prisma": {
|
|
"seed": "tsx prisma/seed.ts"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx,mjs}": "eslint --fix"
|
|
},
|
|
"devDependencies": {
|
|
"@mermaid-js/mermaid-cli": "^11.12.0",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/node": "^20",
|
|
"@types/pg": "^8.20.0",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitest/coverage-v8": "^4.1.5",
|
|
"chokidar-cli": "^3.0.0",
|
|
"concurrently": "^9.2.1",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.2.4",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^29.1.1",
|
|
"lint-staged": "^16.4.0",
|
|
"prisma-erd-generator": "^2.4.2",
|
|
"tailwindcss": "^4",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5",
|
|
"vitest": "^4.1.5"
|
|
}
|
|
}
|