Website Demo: Gan Xu Science
This is a personal website based on style sheets of minimal. It is purely based on HTML/CSS with TypeScript compiled to JavaScript.
- Node.js (v16 or higher)
- npm
npm installnpm run buildThis compiles TypeScript files from src/ to the appropriate JavaScript directories.
For development, you can use watch mode to automatically recompile on changes:
npm run watchsrc/- TypeScript source filesscale.fix.ts- iOS viewport scaling fixhead_footer_loader.ts- Header/footer loader using Fetch APIchore_door/script.ts- Chore Door game logic
javascripts/- Compiled JavaScript files (generated)projects/- Project pages and assetsresources/- Static resources (images, PDFs, etc.)
The compiled JavaScript files are committed to the repository for GitHub Pages deployment. Make sure to run npm run build before committing changes to TypeScript files.