nvm install node
# Update the default terminal node version.
# Change "26" to your node version
nvm alias default 26
# See all installed nodes
nvm ls
| Pixels (px) | Rem |
|---|---|
| 8px | 0.5rem |
| 10px | 0.625rem |
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| --- | --- |
| 18px | 1.125rem |
| 20px | 1.25rem |
Install Husky from https://typicode.github.io/husky/get-started.html
yarn add --dev husky
# Add pinst ONLY if your package is not private
yarn add --dev pinst
In the wp-content/themes/your-theme/.husky folder add a file called pre-commit. Inside pre-commit type:
Switch from latest PHP (might be 8.2) to 7.4
brew unlink php && brew link php@7.4 --force --overwrite && php -v
Switch from PHP 7.4 to latest PHP (might be 8.2)
brew unlink php@7.4 && brew link php --force --overwrite && php -v
Check the PHP version with
php -v
- Template From: https://natelandau.com/my-mac-osx-bash_profile/
- Colors from
CMD + SHIFT + F
-*.css,-*.scssc,-node_modules
NewerOlder