fec-monorepo-project-standard
Installation
SKILL.md
Monorepo Project Specifications
For multi-package front-end repositories using pnpm workspace, Turborepo or Nx.
Purpose
Standardize the directory structure, dependency management, task orchestration and package release process of the Monorepo project to ensure the build efficiency and version consistency of multi-package collaboration.
Procedure
- First confirm whether the repository has used pnpm workspace, Turborepo or Nx, and continue to use the existing package naming and task conventions.
- Place applications in
apps/and shared libraries, configuration and tools inpackages/or existing equivalent directories. - Internal dependencies use
workspace:*to drive the build sequence through the dependency graph. - Configure cacheable, parallelizable, and incremental root tasks for build, lint, and test, and specify input, output, and environment variables.
- Configure the affected/changed range command in Turborepo/Nx. CI will run the affected packages first while retaining the backbone full verification entry.
- Check package boundaries, circular dependencies, exports, peer dependencies and version policies before publishing the package.