PNPM Configuration
Package Manager
TailStack enforces PNPM version 10.12.1 across all packages using thepackageManager field:
package.json
PNPM Configuration (.npmrc)
.npmrc
auto-install-peers: Automatically installs peer dependencies, reducing manual dependency management.strict-peer-dependencies: Enforces peer dependency requirements, catching version conflicts early.
Monorepo Structure
TailStack provides three distinct architecture templates:Core
Full ERN Stack monorepo with frontend and backend
React
Frontend-only architecture with Vite + React
Node
Backend-only architecture with Express + TypeScript
Core Monorepo Architecture
The flagship Core package implements a complete monorepo setup:Workspace Commands
Development Scripts
The rootpackage.json defines workspace-level commands:
package.json
Understanding Workspace Filters
Understanding Workspace Filters
The
--filter flag allows running commands in specific workspaces:pnpm --filter ./source/frontend dev- Runs dev server for frontend onlypnpm --filter ./source/Server dev- Runs dev server for backend onlyconcurrentlyruns both simultaneously for full-stack development
Running Commands
Automation Scripts
TailStack includes cross-platform automation scripts for efficient monorepo management.Smart Clean Script
Removes allnode_modules and lock files with parallel processing:
Smart Install Script
Parallel installer with intelligent load monitoring: Features:- Installs dependencies for all projects concurrently
- Monitors CPU and RAM usage in real-time
- Automatically suspends installation if system load exceeds 90%
- Resumes when load drops below 75%
- Prevents system hangs during heavy dependency resolution
Package Management
Dependency Types
TailStack uses different dependency types strategically:Root Dependencies (Development Tools)
Root Dependencies (Development Tools)
Installed at the monorepo root for tooling that affects all packages:
Frontend Dependencies
Frontend Dependencies
React ecosystem packages installed in
source/frontend/:- React 19: Latest version with improved performance
- Vite 7: Next-generation build tool
- Tailwind CSS 4: Utility-first CSS framework
- TypeScript 5.9: Type safety
Backend Dependencies
Backend Dependencies
Node.js server packages installed in
source/Server/:- Express 5: Web framework
- TypeScript 5.9: Type safety
- Cookie Parser: Cookie handling middleware
- CORS: Cross-origin resource sharing
Adding Dependencies
Version Control
Git Hooks with Husky
TailStack enforces code quality with pre-commit hooks:package.json
Gitleaks scans commits for secrets, API keys, and credentials before they reach version control.
Commitlint
Enforces Conventional Commits format:Best Practices
Use Workspace Filters
Always scope commands to specific workspaces to avoid unnecessary builds.
Leverage Smart Scripts
Use the provided automation scripts for clean installs and maintenance.
Enforce Peer Dependencies
Keep
strict-peer-dependencies=true to catch version conflicts early.Version Lock PNPM
Use
packageManager field to ensure consistent tooling across teams.Next Steps
Frontend Stack
Learn about the React 19 + Vite 7 setup
Backend Stack
Explore Express 5 and Node clustering