mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
c03af0eacc
This should reduce a lot of repetition. Supports first/last names, nicknames, generic names that don't conform to first/last norms, and has basic support for affiliated organizations. Also snuck in more info on website colors to the web best practices article, inc. a link to Chris' Wiki.
25 lines
1.6 KiB
Makefile
25 lines
1.6 KiB
Makefile
# 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-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --no-first-run --disable-component-update --disable-background-networking --enable-features='EmbeddingRequiresOptIn,EnableDrDc,HttpsOnlyMode,PdfUnseasoned,StrictOriginIsolation,StrictExtensionIsolation,WebRtcHideLocalIpsWithMdns,ThrottleDisplayNoneAndVisibilityHiddenCrossOriginIframes,UseOzonePlatform' --user-data-dir=$(CHROME_PROFILE) --enable-quic --origin-to-force-quic-on=seirdy.one:443
|
|
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)"
|
|
|
|
hint-online:
|
|
pnpx hint --config .hintrc -f codeframe $(URL)
|
|
lighthouse:
|
|
mkdir -p $(CHROME_PROFILE)
|
|
CHROME_PATH=$(CHROME_PATH) lighthouse $(URL) $(LIGHTHOUSE_ARGS)
|
|
rm -rf $(CHROME_PROFILE)
|
|
redbot:
|
|
redbot_cli -a $(URL)
|
|
|
|
all: lighthouse hint-online
|
|
|
|
.PHONY: hint-online lighthouse redbot all
|