pnpm install
pnpm devWe use Conventional Commits for clear commit history:
<type>: <subject>
[optional body]
[optional footer]
- feat: New feature
- fix: Bug fix
- docs: Documentation only
- style: Code style (formatting, missing semicolons, etc.)
- refactor: Code change that neither fixes a bug nor adds a feature
- perf: Performance improvement
- test: Adding or updating tests
- chore: Maintenance tasks (dependencies, config, etc.)
- ci: CI/CD changes
feat: add breadcrumbs to detail pages
fix(dark-mode): improve code block contrast
docs: update README with Velite setup
chore: add commitlint configuration
ci: add GitHub Actions workflowWe use Husky to enforce code quality:
- Runs
lint-stagedto lint and format staged files with Biome - Auto-fixes issues when possible
- Fast (~1-2 seconds)
- Validates commit message format with commitlint
- Rejects invalid messages
- Runs full typecheck (
tsc --noEmit) - Runs full build (
velite && next build) - Slower (~10-30 seconds) but ensures nothing broken reaches remote
# Skip pre-commit and commit-msg (not recommended)
git commit --no-verify -m "fix: emergency hotfix"
# Skip pre-push (not recommended)
git push --no-verifyGitHub Actions runs on all pushes and PRs:
- Lint - Biome checks
- Typecheck - TypeScript validation
- Build - Full Velite + Next.js build
- Commitlint - Validates commit messages (PRs only)
All jobs must pass for PRs to be mergeable.
- Create
content/kits/N.slug-name.mdx(N = order number) - Add frontmatter (see existing files)
- Write MDX content
- Run
pnpm buildto validate
- Create
content/tools/N.slug-name.mdx - Ensure
builtOnreferences existing kit slugs - Run
pnpm buildto validate
pnpm dev # Start dev server
pnpm build # Build for production (Velite + Next.js)
pnpm start # Start production server
pnpm lint # Biome lint check
pnpm format # Biome format (auto-fix)
pnpm typecheck # TypeScript check (no emit)├── app/ # Next.js App Router
│ ├── kits/[slug]/ # Kit detail pages
│ ├── tools/[slug]/ # Tool detail pages
│ └── page.tsx # Home page
├── components/ # React components
│ ├── ui/ # shadcn/ui components
│ └── mdx-content.tsx # MDX renderer
├── content/ # MDX content (Git-backed)
│ ├── kits/
│ └── tools/
├── lib/ # Utilities
│ └── content.ts # Velite exports
├── velite.config.ts # Content processing config
└── .github/workflows/ # CI/CD