Skip to content

volodymyr-kushnir/volodymyrkushnir.dev

Repository files navigation

— Hey, hi!

My name is Volodymyr and this here is my website.
I've decided to host it with GitHub Pages, because it's so much easier, cost efficient, and saves me time on deployments (since I have none of them, kinda). I've also bought a domain name on Google Domains for $12/year and I find this service to be very convenient as well. Other than that it's just good old plain HTML and CSS with a very little bit of JavaScript. <head> is built using excellent HEAD for reference, <body> uses some of the styles from the great Semantic UI framework. Website is frequently tested with Lighthouse automated tool. Amazing Workbox helps build a decent Service Worker for this website (hence it even works offline), serve is used to run my website locally during development. I have workbox and serve npm packages installed globally with sudo npm install --global workbox-cli serve, and I've also set up a pre-commit git hook which automatically runs workbox generateSW workbox-config.js before I commit and push my code to GitHub, so that I don't have to do it manually every time I make changes. .git/hooks/pre-commit looks as simple as this:

#!/bin/sh
if workbox generateSW workbox-config.js ; then
  git add sw.js
  exit 0
else
  echo "Cannot generate sw.js"
  echo "Aborting"
fi

“That's all Folks!” 🐷