From d1f4fd35a46ae2fe9a96987712792bf517997548 Mon Sep 17 00:00:00 2001 From: Juliusz Gonera Date: Wed, 5 Mar 2014 15:32:00 -0800 Subject: [PATCH] Stop make kss from opening browser 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 --- resources/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/Makefile b/resources/Makefile index 0d9608f0fc..1b7aeb164a 100644 --- a/resources/Makefile +++ b/resources/Makefile @@ -8,10 +8,12 @@ kss: nodecheck $(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 -- 2.20.1