diff --git a/Makefile b/Makefile index 1549eb8..c5c7c5d 100644 --- a/Makefile +++ b/Makefile @@ -79,8 +79,7 @@ endif mentions.json: hugo # gather old version of the site # rsync $(RSYNCFLAGS) --exclude '*.gz' --exclude '*.br' --exclude '*.png' --exclude-from .rsyncignore $(WWW_RSYNC_DEST)/ old - static-webmentions find - mv mentions.json mentions.json.unfiltered + static-webmentions -f mentions.json.unfiltered find # filter the webmentions a bit; jq offers more flexibility than config.toml jq '[ .[] | select(.Dest|test("https://(git.sr.ht/~seirdy/seirdy.one/log/master|seirdy.one|web.archive.org|archive.is|en.wikipedia.org|matrix.to|([a-z]*.)?reddit.com|github.com)") | not) ]' mentions.json rm mentions.json.unfiltered diff --git a/Makefile.online b/Makefile.online index 6f1524e..a27efe2 100644 --- a/Makefile.online +++ b/Makefile.online @@ -9,13 +9,13 @@ CHROME_PATH = /home/rkumar/Executables/ghq/github.com/chromium-unofficial-latest CHROME_PROFILE = /tmp/chrome-lighthouse CHROME_FLAGS += --headless --disable-extensions --no-sandbox --no-first-run --user-data-dir=$(CHROME_PROFILE) CPU_SLOWDOWN=2.4 -LIGHTHOUSE_ARGS += --budget-path budget.json --output html --output json --output-file lighthouse-results --throttling.cpuSlowdownMultiplier=$(CPU_SLOWDOWN) --chrome-flags=$(CHROME_FLAGS) +LIGHTHOUSE_ARGS += --budget-path budget.json --output html --output json --output-file lighthouse-results --throttling.cpuSlowdownMultiplier=$(CPU_SLOWDOWN) --plugins=lighthouse-plugin-resource-granular-summary --chrome-flags="$(CHROME_FLAGS)" hint-online: hint --config .hintrc -f codeframe $(URL) lighthouse: mkdir -p $(CHROME_PROFILE) - lighthouse $(URL) $(LIGHTHOUSE_ARGS) + npx lighthouse@next $(URL) $(LIGHTHOUSE_ARGS) rm -rf $(CHROME_PROFILE) redbot: redbot_cli -a $(URL)