Development workflow tools for the Boxedo monorepo, featuring the mighty hawk.ts - a swiss-army-knife build orchestrator.
The star of this package! Hawk handles the entire development workflow:
- Client building with esbuild
- Server compilation and bundling
- Asset copying and vendor management
- Live reloading and (almost) hot updates
- Development server coordination
From the project root:
npm run dev # Start development with hawk
npm run build # Build all packagesHawk orchestrates complex build tasks:
- Compiles TypeScript to optimized JavaScript
- Bundles client assets with esbuild (including CSS)
- Copies vendor libraries to server assets
- Manages live reload functionality
- Handles both development and production builds
- Watches for changes and lint/rebuild everything as needed
The hawk.ts script uses:
- esbuild for fast compilation and bundling
- File system operations for asset management
- Task coordination across multiple packages
- Development server integration for live updates
This centralized approach eliminates the need for complex build configuration in each individual package.