How to speed up development with GitHub CLIWait, what?! I was today years old when I found out that GitHub has a command line interface ๐คฏ. In the official docs the instructions to install and use it are quite clear to follow. Installation I use brew to install GitHub CLI, so brew install gh ...Sep 2, 2022 ยท 4 min readgiuliachiola.hashnode.dev
How to find an element in JavaScript and move it to the first position.Surely there are several way to do it, this is just one of them. Let me know if you know a better way to do it ๐ช๐ป To find an element into an array and move to be the first, you have to: get the index of the founded item using findIndex() ๐ The ...Feb 5, 2021 ยท 3 min readgiuliachiola.hashnode.dev
How to add generic styles in Vue StyleguidistAt work, recently we worked on a styleguide project using vue Styleguidist, the Vue little brother of react-styleguidist, and we would like to organize components styles in this way: component specific styles would be inside the [ComponentName].vue ...Feb 5, 2021 ยท 4 min readgiuliachiola.hashnode.dev
How to add Google Fonts in Vue StyleguidistFew days ago I worked on a vue-styleguidist project and I had to use a Google Font. Side note: vue-styleguidist is the "Vue version" of the more famous react-styleguidist, a component development environment with hot reloaded dev server and a living ...Feb 2, 2021 ยท 3 min readgiuliachiola.hashnode.dev
Add a class in Nunjucks using a conditional statementIn Nunjucks we can use a conditional statement in two ways: explicit using the {% if %} keyword, or implicit using the {{ }} expression. Note: I did not find any reference about these names โ implicit/explicit โ in the Nunjucks official documentati...Feb 2, 2021 ยท 3 min readgiuliachiola.hashnode.dev