@@ -8,7 +8,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
88- ** Package manager** : Always use ` pnpm ` (never npm or yarn)
99- ** Build single site** : ` pnpm build standards/{name} ` or ` nx build {name} `
1010- ** Start dev server** : ` pnpm start:{site} ` (e.g., ` pnpm start:portal ` , ` pnpm start:isbdm ` )
11- - ** Test execution** : ` pnpm test --skip-nx-cache ` (always skip nx cache for tests )
11+ - ** Test execution** : ` pnpm test ` (uses nx cache for performance with nx-affected )
1212- ** Type checking** : ` pnpm typecheck `
1313- ** Linting** : ` pnpm lint `
1414
@@ -29,7 +29,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
2929- ** Environment-specific** : ` nx run standards-dev:e2e:site-validation:production `
3030
3131#### Build & Configuration Testing
32- - ** Config validation** : ` node scripts/test-site-builds.js --site all --env localhost --skip-build `
32+ - ** Config validation** : ` node scripts/test-site-builds.js --site all --env local --skip-build `
3333- ** Full build tests** : ` node scripts/test-site-builds.js --site all --env production `
3434- ** Affected builds** : ` nx run standards-dev:build-affected `
3535- ** Build validation** : ` nx run standards-dev:validate:builds `
@@ -147,6 +147,12 @@ standards-dev/
147147- ** E2E testing** : Playwright for interface testing when needed
148148- ** Always test before commits** : Tests must pass before offering to commit
149149
150+ ### Scaffolding and Templates
151+ - ** CRITICAL** : Always check and update scaffolding templates when making configuration changes that affect all sites
152+ - ** Template locations** : ` scripts/site-template.ts ` and ` scripts/scaffold-site.ts `
153+ - ** Pattern** : When fixing issues in existing sites, verify the scaffold template doesn't propagate the same issue to future sites
154+ - ** Example** : If removing test targets from existing sites, also remove from site template
155+
150156## Test Placement Decision Tree (CRITICAL - Reference When Creating Tests)
151157
152158** ALWAYS use this decision tree when creating new tests to ensure they run in the correct scenario:**
@@ -261,7 +267,7 @@ const { workspaceRoot, scriptsDir, tmpDir, packagesDir, themeDir } = setupTestPa
261267### Deployment and Build Management
262268- ** Server coordination** : Ask user to start servers/builds rather than waiting for timeouts
263269- ** Environment awareness** : Warn when environment isn't set to project root
264- - ** Nx optimization** : Use ` --skip-nx-cache ` for reliable test runs
270+ - ** Nx optimization** : Use nx cache for performance; only skip with ` --skip-nx-cache ` when debugging cache-specific issues
265271
266272## Vocabulary and Content Management
267273
@@ -391,7 +397,7 @@ nx run standards-dev:validate:builds # Post-build validation
391397
392398# Script-based testing
393399node scripts/test-site-builds.js --site all --env production
394- node scripts/test-site-builds.js --site portal --env localhost --skip-build
400+ node scripts/test-site-builds.js --site portal --env local --skip-build
395401```
396402
397403#### Comprehensive Test Suites
0 commit comments