1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-25 02:02:11 +00:00
seirdy.one/Makefile.online

26 lines
1 KiB
Makefile
Raw Normal View History

# The following test the online instance, post-deploy. I just kept them here for convenience
DOMAIN = seirdy.one
PAGE_PATH = /
SCHEME=https://
URL = $(SCHEME)$(DOMAIN)$(PAGE_PATH)
# latest bleeding-edge chromium snapshot
2021-06-30 06:54:55 +00:00
CHROME_PATH = /home/rkumar/Executables/ghq/github.com/chromium-unofficial-latest-linux/chromium-latest-linux/latest/chrome-linux/chrome
CHROME_PROFILE = /tmp/chrome-lighthouse
CHROME_FLAGS += --headless --disable-extensions --no-sandbox --no-first-run --user-data-dir=$(CHROME_PROFILE)
CPU_SLOWDOWN=2.4
2021-07-19 09:58:39 +00:00
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)
2021-07-19 09:58:39 +00:00
npx lighthouse@next $(URL) $(LIGHTHOUSE_ARGS)
rm -rf $(CHROME_PROFILE)
2020-12-23 02:11:19 +00:00
redbot:
redbot_cli -a $(URL)
all: lighthouse hint-online
2020-12-23 02:11:19 +00:00
.PHONY: hint-online lighthouse redbot all