Remove old maintenance script importTextFile.php
[mediawiki.git] / docs / kss / Makefile
blob374bab24cf2028fb1b9c22beecd81029f06a8c62
1 MEDIAWIKI_LOAD_URL ?= http://localhost/w/load.php
3 kss: nodecheck
4 # FIXME: Use more up-to-date Ruby version
6 # Generates CSS of mediawiki.ui and mediawiki.ui.button using ResourceLoader, then applies it to the
7 # KSS style guide
8 $(eval KSS_RL_TMP := $(shell mktemp /tmp/tmp.XXXXXXXXXX))
9 @curl -sG "${MEDIAWIKI_LOAD_URL}?modules=mediawiki.legacy.shared|mediawiki.legacy.commonPrint|mediawiki.ui|mediawiki.ui.button&only=styles" > $(KSS_RL_TMP)
10 @node_modules/.bin/kss-node ../../resources/src/mediawiki.ui static/ --css $(KSS_RL_TMP) -t styleguide-template
11 @rm $(KSS_RL_TMP)
13 kssopen: kss
14 @echo Opening the generated style guide...
15 @command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/static/index.html; exit 0; }
16 @xdg-open ${PWD}/static/index.html
18 nodecheck:
19 @scripts/nodecheck.sh