agregar íconos de fork awesome al proyecto
This commit is contained in:
parent
01d1a4837f
commit
f3f367c195
3 changed files with 16 additions and 11 deletions
8
Makefile
8
Makefile
|
@ -16,7 +16,7 @@ include .env
|
||||||
export
|
export
|
||||||
|
|
||||||
help: always ## Ayuda
|
help: always ## Ayuda
|
||||||
@grep "^\w\+:.*##" Makefile | sed -re "s/(\w+):.*##(.*)/\x1B[38;5;197m\1\x1B[0m\t\t\2/" # | column -s ";" -t
|
@grep "^[^\t]\+:.*##" Makefile | sed -re "s/(.*):.*##(.*)/\1;\2/" | column -s ";" -t | sed -re "s/^([^ ]+) /\x1B[38;5;197m\1\x1B[0m/"
|
||||||
|
|
||||||
all: node_modules fa install serve build ## Todas las tareas necesarias para desarrollar
|
all: node_modules fa install serve build ## Todas las tareas necesarias para desarrollar
|
||||||
|
|
||||||
|
@ -40,6 +40,10 @@ webpack-dev-server: /tmp/webpack.pid ## Servidor de prueba de Webpack
|
||||||
fa: assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome
|
fa: assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome
|
||||||
@echo -e "\a"
|
@echo -e "\a"
|
||||||
|
|
||||||
|
fa-%: always ## Agregar un ícono de Fork Awesome (reemplazar % por el nombre)
|
||||||
|
@echo Agregando $* a la lista de íconos
|
||||||
|
@grep -q "$*" fa.txt || grep '^$$fa-var-$*: ' node_modules/fork-awesome/scss/_variables.scss | sed -re "s/^.*: \"\\\(.*)\";/\1 $*/" >> fa.txt
|
||||||
|
|
||||||
push: ## Publica los cambios locales
|
push: ## Publica los cambios locales
|
||||||
sudo chgrp -R 82 _site
|
sudo chgrp -R 82 _site
|
||||||
rsync -avi --delete-after _site/ root@athshe.sutty.nl:/srv/sutty/srv/http/data/_deploy/$(site).sutty.nl/
|
rsync -avi --delete-after _site/ root@athshe.sutty.nl:/srv/sutty/srv/http/data/_deploy/$(site).sutty.nl/
|
||||||
|
@ -67,7 +71,7 @@ assets/js/pack.js: $(js)
|
||||||
# Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt
|
# Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt
|
||||||
# node_modules/font-awesome/scss/_variables.scss
|
# node_modules/font-awesome/scss/_variables.scss
|
||||||
assets/fonts/forkawesome-webfont.woff2: fa.txt
|
assets/fonts/forkawesome-webfont.woff2: fa.txt
|
||||||
grep -v "^#" fa.txt | sed "s/^/U+/" | tr "\n" "," | xargs -rI {} glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist="{}"
|
grep -v "^#" fa.txt | sed "s/^/U+/" | cut -d " " -f 1 | tr "\n" "," | xargs -rI {} glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist="{}"
|
||||||
mv node_modules/fork-awesome/fonts/forkawesome-webfont-subset.woff2 $@
|
mv node_modules/fork-awesome/fonts/forkawesome-webfont-subset.woff2 $@
|
||||||
|
|
||||||
.PHONY: always
|
.PHONY: always
|
||||||
|
|
BIN
assets/fonts/forkawesome-webfont.woff2
Normal file
BIN
assets/fonts/forkawesome-webfont.woff2
Normal file
Binary file not shown.
19
fa.txt
19
fa.txt
|
@ -1,10 +1,11 @@
|
||||||
# node_modules/fork-awesome/scss/_variables.scss
|
# node_modules/fork-awesome/scss/_variables.scss
|
||||||
f1e0
|
f1e0 share-alt
|
||||||
f230
|
f09a facebook
|
||||||
f099
|
f099 twitter
|
||||||
f232
|
f232 whatsapp
|
||||||
f2c6
|
f2c6 telegram
|
||||||
f1a1
|
f1a1 reddit
|
||||||
f0e0
|
f0e0 envelope
|
||||||
f173
|
f173 tumblr
|
||||||
f2e2
|
f2e1 mastodon
|
||||||
|
f16d instagram
|
||||||
|
|
Loading…
Reference in a new issue