bea5e1954f
Add the @nx/angular, @nx/nest, @nx/vite, @nx/eslint plugins, then generate the two apps. Adjust the empty-template tsconfig.base.json to be Angular-compatible (drop project references and customConditions that the empty-template defaults to but Angular doesn't support; keep the strict-TS extensions from ADR-0004). apps/portal-shell (Angular 21): - standalone APIs, routing, SCSS, esbuild - vitest-angular as unitTestRunner, playwright for e2e - strict mode - tags scope:portal-shell, type:app - app.config.ts wired with provideZonelessChangeDetection() per ADR-0004 (Angular 21 + Nx 22 generates without zone.js by default) apps/portal-bff (NestJS 11): - Express adapter (default per ADR-0005) - Jest as unitTestRunner - tags scope:portal-bff, type:app - main.ts wired with a global ValidationPipe configured whitelist + forbidNonWhitelisted + transform per ADR-0005 - Phase-2 security additions (helmet, CORS, sessions, CSRF, rate limit, auth guards, error filter) deferred to their respective ADRs - placeholder comment in main.ts Workspace dependencies: class-validator + class-transformer added (required by NestJS ValidationPipe at runtime). Nx-generated .gitignore additions (.angular, __screenshots__) merged into ours. .vscode/extensions.json and launch.json added by Nx are kept (do not override our existing settings.json).
50 lines
606 B
Plaintext
50 lines
606 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
.pnpm-store/
|
|
|
|
# Build outputs
|
|
dist/
|
|
build/
|
|
out-tsc/
|
|
tmp/
|
|
.nx/cache/
|
|
.nx/workspace-data/
|
|
|
|
# Test artifacts
|
|
coverage/
|
|
.test-output/
|
|
|
|
# Logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
pnpm-debug.log*
|
|
|
|
# Environment / secrets
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
*.pem
|
|
*.key
|
|
|
|
# OS / editor scrap
|
|
.DS_Store
|
|
Thumbs.db
|
|
*.swp
|
|
*~
|
|
.idea/
|
|
|
|
# VS Code: keep shared settings, ignore local overrides
|
|
.vscode/*.local
|
|
.vscode/*.code-workspace
|
|
|
|
# Claude Code: keep shared settings, ignore local overrides
|
|
.claude/settings.local.json
|
|
|
|
# Personal scratchpad — see CLAUDE.md
|
|
notes/
|
|
|
|
.angular
|
|
|
|
__screenshots__/
|