postcss-design-tokens gotchas’

I remember when I worked constantly heavily with frontend cascading stylesheet topics, which was in the 2010s when people were simply converting Photoshop designs into HTML + CSS combos. Fast forward to today, lots of bells & whistles were definitely moulded on top of that flow. Style Dictionary is undoubtedly one of them, and even though I faced a bumpy start, I also got to relive those years of heavy frontend-oriented craftsmanship.

Read More postcss-design-tokens gotchas’

TypeScript Node.js testing tips

Situation 1 Use mocha in server-side TypeScript projects with compilerOptions.paths in tsconfig.json ? Then we need: mocha tsconfig-paths ts-node { “ts-node”: { “files”: true } } in the tsconfig.json file (see more here) Depending on how we import our modules around in the codebase, point (4) above may not always be needed. In one of […]

Read More TypeScript Node.js testing tips

GIT_SSH_COMMAND

I have a number of git repos on remote systems (e.g. GitLab) where my laptop’s pub key is already registered for a certain other account not associated with the aforementioned git repos. Thus, I usually have to GIT_SSH_COMMAND=’ssh -i <path/to/some/private/key>’ git <command> so as to communicate with these repos under the correct identity. I might […]

Read More GIT_SSH_COMMAND

make a string url-safe

When running devops scripts (among other things), we often need to get a url-safe representation of an arbitrary string. This is commonly known as “url slug” by the average netizens. As my JavaScript is better than my bash, and npx is more universally available than my capability to master both Windows and Linux shell scripts, […]

Read More make a string url-safe