/www

Source code for my blog Β· βœοΈβ€―πŸ’»β€―πŸ‘‹

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

✍️ πŸ’» πŸ‘‹

Source code for my blog.

Overview

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.

Installation and Development

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

Plans and TODOs

Everything I consider implementing is in the projects section on GitHub.