Instead add make kssopen that opens the browser with the styleguide.
Most people will probably keep the style guide open in the browser and
refresh it themselves if they need to.
Change-Id: I5fd82d01da1c7f4bbf48ad921c2e7cb0407974b3
$(eval KSS_RL_TMP := $(shell mktemp /tmp/tmp.XXXXXXXXXX))
@curl -sG "${MEDIAWIKI_LOAD_URL}?modules=mediawiki.ui|mediawiki.ui.button&only=styles" > $(KSS_RL_TMP)
@node_modules/.bin/kss-node mediawiki.ui mediawiki.ui/docs --css $(KSS_RL_TMP) -t styleguide-template
+ @rm $(KSS_RL_TMP)
+
+kssopen: kss
@echo Opening the generated style guide...
- @command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/mediawiki.ui/docs/index.html; exit 1; }
+ @command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/mediawiki.ui/docs/index.html; exit 0; }
@xdg-open ${PWD}/mediawiki.ui/docs/index.html
- @rm $(KSS_RL_TMP)
nodecheck:
@scripts/nodecheck.sh