1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

Fix makefiles

This commit is contained in:
Rohan Kumar 2021-07-19 02:58:39 -07:00
parent 678fda93da
commit d6363e2948
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 3 additions and 4 deletions

View file

@ -79,8 +79,7 @@ endif
mentions.json: hugo mentions.json: hugo
# gather old version of the site # gather old version of the site
# rsync $(RSYNCFLAGS) --exclude '*.gz' --exclude '*.br' --exclude '*.png' --exclude-from .rsyncignore $(WWW_RSYNC_DEST)/ old # rsync $(RSYNCFLAGS) --exclude '*.gz' --exclude '*.br' --exclude '*.png' --exclude-from .rsyncignore $(WWW_RSYNC_DEST)/ old
static-webmentions find static-webmentions -f mentions.json.unfiltered find
mv mentions.json mentions.json.unfiltered
# filter the webmentions a bit; jq offers more flexibility than config.toml # 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.unfiltered >mentions.json 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.unfiltered >mentions.json
rm mentions.json.unfiltered rm mentions.json.unfiltered

View file

@ -9,13 +9,13 @@ CHROME_PATH = /home/rkumar/Executables/ghq/github.com/chromium-unofficial-latest
CHROME_PROFILE = /tmp/chrome-lighthouse CHROME_PROFILE = /tmp/chrome-lighthouse
CHROME_FLAGS += --headless --disable-extensions --no-sandbox --no-first-run --user-data-dir=$(CHROME_PROFILE) CHROME_FLAGS += --headless --disable-extensions --no-sandbox --no-first-run --user-data-dir=$(CHROME_PROFILE)
CPU_SLOWDOWN=2.4 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-online:
hint --config .hintrc -f codeframe $(URL) hint --config .hintrc -f codeframe $(URL)
lighthouse: lighthouse:
mkdir -p $(CHROME_PROFILE) mkdir -p $(CHROME_PROFILE)
lighthouse $(URL) $(LIGHTHOUSE_ARGS) npx lighthouse@next $(URL) $(LIGHTHOUSE_ARGS)
rm -rf $(CHROME_PROFILE) rm -rf $(CHROME_PROFILE)
redbot: redbot:
redbot_cli -a $(URL) redbot_cli -a $(URL)