From d4b4e75fdec3ea2b97ad33bb7ded93e26363fef3 Mon Sep 17 00:00:00 2001 From: Steffen Rademacker Date: Thu, 29 Apr 2021 10:54:04 +0200 Subject: [PATCH] Glyphhanger + webdev cli tools --- install/2_cli-tools.sh | 2 -- install/5_webdev.sh | 10 ++++++++++ zsh/aliases | 3 +-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/install/2_cli-tools.sh b/install/2_cli-tools.sh index 91457948..cc60123d 100755 --- a/install/2_cli-tools.sh +++ b/install/2_cli-tools.sh @@ -18,9 +18,7 @@ brew install tree # node cli tools and helpers npm install -g diff-so-fancy npm install -g fkill-cli -npm install -g npm-check npm install -g pure-prompt -npm install -g yarn # install fzf /usr/local/opt/fzf/install diff --git a/install/5_webdev.sh b/install/5_webdev.sh index 910400a3..514c22af 100755 --- a/install/5_webdev.sh +++ b/install/5_webdev.sh @@ -26,6 +26,16 @@ sudo ln -f ~/dotfiles/etc/hosts /etc/hosts brew link php@7.4 pecl install imagick +# additional webdev cli tools +npm install -g npm-check +npm install -g yarn +npm install -g glyphhanger + +# additional stuff for glyphhanger +pip install fonttools +pip install brotli +pip install zopfli + # certificates for local ssl mkcert -install mkcert localhost "dev.localhost" "*.dev.localhost" diff --git a/zsh/aliases b/zsh/aliases index b65632c4..27da2157 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -51,6 +51,5 @@ alias yre='rm -f yarn.lock && rm -rf node_modules && yarn' # random usefull stuff alias dnsflush='sudo dscacheutil -flushcache' alias lock="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend" - -# imagemagick downsampling shortcuts (c&p retina folder, run, done!) alias anigif='convert -delay 12 -loop 0 *.jpg animated.gif' +alias woffwoff='glyphhanger --subset="*.otf" --formats=woff-zopfli,woff2'