Takazudo Modular Docs

Type to search...

to open search from anywhere

b4push

Run comprehensive pre-push validation covering code quality, builds, tests, 404 checking, and full e2e tests against production build. Use when: (1) Completing a PR or feature implementation, (2) Befo...

Before Push Check

Run pnpm b4push from the project root. Executes scripts/run-b4push.sh which runs all checks in order:

  1. Port cleanup - Kill processes on ports 34434 and 9000
  2. Code quality checks - typecheck + lint + format
  3. Clean build directories
  4. Unit tests - jest suite
  5. Production build - includes metadata, sitemap, RSS, search indexing
  6. E2E image setup - symlink static images to out/
  7. Start production server - python3 http.server on port 9000
  8. 404 checker - verify all pages are accessible
  9. Full E2E test suite - Playwright against production build
  10. Stop server and cleanup

Takes ~3-4 minutes. All steps must pass.

On failure

  1. Read the failure output to identify which step failed
  2. Auto-fix what you can:
  • Formatting: pnpm run format:fix
  • Lint: pnpm run lint:fix
  • E2e failures: analyze screenshots/traces in test-results/
  1. Re-run pnpm b4push to confirm all checks pass
  2. Report the final status