Modern portfolio website built with Gatsby 5, React 18, and TypeScript.
- Framework: Gatsby 5.13
- UI Library: React 18.3
- Styling: Styled Components 6
- Language: TypeScript + JavaScript
- Quality: ESLint + Prettier +
tsc --noEmit - CI/CD: GitHub Actions + Cloudflare Pages + Wrangler CLI
npm install # Install dependencies
npm run dev # Start dev server (localhost:8000)
npm run build # Build for production
npm run serve # Serve production build locally
npm run clean # Clean Gatsby cache- TypeScript 5.9 (type safety)
- GitHub Actions (automation)
- Cloudflare Pages (hosting)
- Wrangler CLI (deployment)
- Progressive Web App (PWA)
-
Add TypeScript:
- Installed TypeScript 5.9+.
- Created
tsconfig.jsonwith Gatsby-specific features. - Migrated three pages to TypeScript: (
index.tsx,profile.tsx,projects.tsx) - Added type definitions (
@types/react,@types/node) - Added
npm run type-check - Integrated TypeScript checking to the new CI/CD pipleine
- Configured path aliases (
@/*tosrc/*)
Impact:
- Core infrastructure ready for migration
- 94.2% JavaScript, 5.8% TypeScript
- New components should be written in TypeScript
-
Implement SEO Component
- Comprehensive meta tags
- Structured data implementation:
- Person scehma
- Website schema
- Profile page schema
- Automatic sitemap generation via
gatsby-plugin-sitemap - PWA manifest with proper metadata
- Canonical URLs
- Robots meta directives (bot prevention)
- Social media optimization
Impact:
- Search engine ready
- Social media/sharing previews
-
CI/CD Pipeline:
CIworkflow- ESLint for code quality checks
- Prettier for code formatting
- TypeScript type checking
- Build verification
- Runs on push to
mainand on PRs - Deploys to Cloudflare Pages after a successful
mainbuild
Preview Deploymentworkflow- Automatic preview URLs for PRs
- Branch preview environments
- GitHub Automation:
- Pull request template with checklist
- Bug report issue template
- Feature request issue template
- Dependabot weekly npm updates and monthly GitHub Actions updates
Impact:
- CI/CD with two automated workflows
-
Migrate Content:
- Added
gatsby-transformer-json - Type-safe queries with GraphQL
- Easy to maintain and update
Impact:
- Migrate existing JSON-based content management
- Added
-
Update browserslist:
- Dropped IE11
Impact:
- No legacy polyfills
-
Deploy to Cloudfare:
- Automatic deployments on push to
main - Preview deployments for PRs
- Global edge locations
- Automatic SSL/TLS
- Wrangler CLI integration
Impact:
- Deployed with automation to
https::/ews-tech.pages.dev - HTTPS by default
- Global CDN distribution
- Automatic deployments on push to
1. Implement Service Worker:
-
Installedgatsby-plugin-offlineConfigured caching:staleWhileRevalidatefor contentcacheFirstfor fontsRuntime caching for images and assets
CreatedserviceWorkerUpdate.tsxcomponent for update notificationsCreatedserviceWorkerHelper.tsutility functionspromptInstall()- PWA install promptcacheFirstfor fontsisStandalone()to detect installed appcheckForUpdates()for update check
Integrated into Layout.tsxFull offline support for visited pagesAutomatic background updatesUser-controlled update activation
Impact:PWA with offline support`Splash screen
-
Finish the TS migration:
- Remaining
.jscomponents →.tsx
- Remaining
-
E2E Testing with Playwright:
- Test structure and CI integration
Retired 2026-10: Jest/RTL, Lighthouse CI, CodeQL, the class-based
Imagecomponent, the/offlinepage, and the.jsduplicate ofconstants.ts— all removed as speculative or dead. Dependabot was reinstated with a weekly cadence. Seegit log.