dump nerdfonts from the website to use locally
Some checks failed
Build the docker image for the frontend application / build (push) Failing after 20s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-04-07 05:58:46 +03:00
parent 66c96ae312
commit 9a72d3f95d
4 changed files with 28 additions and 7 deletions

View File

@ -1,10 +1,25 @@
all:
NF_CSS = static/css/nerdfonts.css
NF_WOFF = static/assets/nerdfonts.woff2
all: $(NF_CSS)
npm run build
$(NF_CSS): $(NF_WOFF)
wget "https://www.nerdfonts.com/assets/css/webfont.css" -O $@
sed 's/\.\.\/fonts\/Symbols-2048-em Nerd Font Complete\.woff2/\/assets\/nerdfonts\.woff2/g' -i $@
$(NF_WOFF):
wget "https://www.nerdfonts.com/assets/fonts/Symbols-2048-em%20Nerd%20Font%20Complete.woff2" -O $@
run: $(NF_CSS)
npm run dev
format:
npm run format
run:
npm run dev
clean:
rm -rf build
rm $(NF_CSS)
rm $(NF_WOFF)
.PHONY: format
.PHONY: format run clean