Source code for my blog.
Next is used as a static site generator. Pages call api
that triggers persistence
to read a post or a project from an MDX file in the data
directory.
RSS is generated via a custom ops
script. Images optimization performed using Squoosh and set up in ops
as well.
Jest is used for running tests and Hygenβfor code generation.
Deployed on a static server using GitHub Actions.
Clone the repo and install dependencies:
git clone https://github.com/bespoyasov/www.git
cd www
npm i
npm start
Create a component, post, or a project:
npm run new:component
npm run new:post
npm run new:project
# Interactive CLI will guide after.
Run the tests:
# For development:
npm run test:dev
# Run once, used in CI:
npm test
Build, generate RSS, export site, and test the build:
npm run build
Optimize images in the public
directory:
npm run images:convert
Everything I consider implementing is in the projects section on GitHub.