From 9695158014c803c192f30dbd967d2200edce0250 Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Mon, 14 Aug 2023 18:22:31 +0200 Subject: bundle fuse.js --- makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 1061030..7bef75e 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,7 @@ ESFLAGS = --target=esnext --format=esm deploy-dir: deploy deploy/bundle.js deploy/style.css deploy/index.html deploy/fastbangs .PHONY: watch clean deploy-dir -watch-script: +watch-script: frontend/fuse.js esbuild frontend/main.ts --bundle --outfile=deploy/bundle.js $(ESFLAGS) --watch watch-style: while true; do inotifywait -e modify -e move frontend/style.sass; make deploy/style.css; done @@ -23,7 +23,10 @@ deploy/index.html: frontend/index.html cp $< $@ deploy/fastbangs: $(shell find src -name '*.hs') stack install --local-bin-path deploy -deploy/bundle.js: $(shell find frontend -name '*.ts') +deploy/bundle.js: $(shell find frontend -name '*.ts') frontend/fuse.js esbuild frontend/main.ts --bundle --outfile=deploy/bundle.js $(ESFLAGS) deploy/style.css: frontend/style.sass sassc $< $@ + +frontend/fuse.js: + curl 'https://cdn.jsdelivr.net/npm/fuse.js@6.6.2/dist/fuse.esm.js' -o $@ -- cgit v1.2.3-70-g09d2