This is a Bun-powered monorepo containing frontend and backend applications.
.
├── frontend/ # React + Vite frontend application
├── backend/ # Hono backend API
├── package.json # Root workspace configuration
├── bunfig.toml # Bun configuration
└── bun.lock # Lockfile for reproducible installs
- @iadevt1_4/frontend - Frontend application (React + Vite + TailwindCSS)
- @iadevt1_4/backend - Backend API (Hono + Bun)
bun install
Run all workspaces in development mode:
bun run dev
Run specific workspace:
bun run dev:frontend # Run only frontend
bun run dev:backend # Run only backend
Build all workspaces:
bun run build
Build specific workspace:
bun run build:frontend
bun run dev
- Run all workspaces in dev modebun run dev:frontend
- Run frontend onlybun run dev:backend
- Run backend onlybun run build
- Build all workspacesbun run build:frontend
- Build frontendbun run lint
- Lint all workspacesbun run format
- Format all files with Prettierbun run format:check
- Check formattingbun run clean
- Clean all node_modules and lockfile
You can run commands in specific workspaces using the --filter
flag:
# Add a dependency to frontend
cd frontend && bun add <package>
# Or from root
bun add --filter '@iadevt1_4/frontend' <package>
# Run a script in backend
bun run --filter '@iadevt1_4/backend' dev
- Auto-installs peer dependencies
- Links workspace packages
- Uses system shell for scripts
- Consistent code formatting across all workspaces
- Run
bun run format
to format all files
- ✅ Bun Workspaces for monorepo management
- ✅ Shared dependencies hoisting
- ✅ Workspace-specific scripts
- ✅ Prettier code formatting
- ✅ TypeScript support
- ✅ Hot reload in development