- Fix linting issues:
npm run lint -- --fix - Compile/Lint/Test:
npm run verify
- Run unit tests:
npm run test - Run AWS integration tests (runs code in AWS):
npm run test:integration - Run all tests:
npm run test:all
- Synthesize CDK template:
npm run cdkc - Diff infrastructure:
npx cdk diff - Test CloudFront function in CloudFront:
npm run test:integration
- TypeScript with strict typing
- Line width: 92 characters
- No semicolons
- Single quotes for strings
- ES5 trailing commas
- Prefer
??over||when coalescing values
- Two remotes:
public(public repo) andprivate(private repo)
/www: Site content and templates (11ty)/www/_includes: WebC components and layouts/www/lib: TypeScript source for client-side features/11ty: Custom Eleventy plugins/infra: AWS CDK infrastructure code/infra/lib: CDK stack definitions/infra/functions: CloudFront Functions (JS)/infra/test: Infrastructure tests/types: TypeScript type definitions