Julien MAUCLAIR opened merge request !42: feat: migrate to turborepo monorepo structure at Klickbee / klickbee-crm

Julien MAUCLAIR
2026-01-21T15:54:45Z

Summary

Convert single Next.js app to turborepo with apps/ and packages/ structure

Move web app to apps/web with shared packages in packages/

Add shared packages: types, schemas, utils, constants, api-client, auth

Add new mobile app scaffold in apps/mobile

Update CI/CD pipelines to use turbo commands with package filtering

Fix pipeline stats component line break issue in dashboard PipelineCard

Changes

Monorepo Structure

├── apps/
│ ├── web/ # Next.js web application
│ └── mobile/ # React Native mobile app (scaffold)
├── packages/
│ ├── api-client/ # Shared API client
│ ├── auth/ # Authentication utilities
│ ├── constants/ # Shared constants
│ ├── schemas/ # Zod validation schemas
│ ├── types/ # TypeScript type definitions
│ ├── typescript-config/ # Shared TS configs
│ └── utils/ # Shared utility functions
├── turbo.json # Turborepo configuration
└── pnpm-workspace.yaml

CI/CD Updates

All pipelines already updated to use pnpm turbo commands

Package filtering with --filter=@klickbee-crm/web

Proper artifact paths for apps/web/

Deploy script handles monorepo structure

Bug Fix

Fixed line break issue in PipelineCard by adding min-w-0 and whitespace-nowrap classes

Test plan

Verify CI/CD pipeline passes (lint, typecheck, tests, build)

Verify deployment works with new structure

Check dashboard pipeline stats display correctly

🤖 Generated with Claude Code