dump nerdfonts from the website to use locally
Some checks failed
Build the docker image for the frontend application / build (push) Failing after 20s
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:
23
app/Makefile
23
app/Makefile
@ -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
|
||||
|
Reference in New Issue
Block a user