~seirdy/seirdy.one

seirdy.one/Makefile.online -rw-r--r-- 1.0 KiB
d6b40e2fRohan Kumar Search engines: remove dupe entry 9 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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
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
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)
	npx lighthouse@next $(URL) $(LIGHTHOUSE_ARGS)
	rm -rf $(CHROME_PROFILE)
redbot:
	redbot_cli -a $(URL)

all: lighthouse hint-online

.PHONY: hint-online lighthouse redbot all