1.2 KiB
1.2 KiB
Ski
ski.aarongutierrez.com
A portfolio site for my ski photography. Built with TypeScript, React, Vite, and <3
Commands
vp devstarts the Vite+ dev server.vp checkruns formatting, linting, and type checks through Vite+.vp fmtformats supported source files through Oxfmt.vp lintruns Oxlint with type-aware checks.vp buildcreates a production build indist/.npm run imagesregenerates hashed originals and resized image variants fromimg/original/, then prepends newly discovered images toimg/data.jsonunder a placeholder set you can fill in.npm run deploybuilds the app, uploadsdist/andimg/to S3, ensures CloudFront servesindex.html, and invalidates/plus/index.html.
React Compiler is enabled through the Vite React plugin, so local dev and production builds both run with the compiler transform.
Deploy Prerequisites
- The publish script expects AWS credentials under the
pushprofile. - Publishing uses the TypeScript script at
scripts/publish.ts. npm run deployexecutes that script with Node's TypeScript support.npm run imagesexpectsmagickto be installed and available on your shell path.