- Updated the list to actually be in alphabetical order - It wasn't working on MacOS, removed the '<' and it works now This is a follow up patch to I3d66bcacf99da7eecc91a421c521dc650ed9cf82 Change-Id: Ief0cd90ebaf36b3df6279f4ca39456bbd1bda6b8
19 lines
795 B
Makefile
19 lines
795 B
Makefile
MEDIAWIKI_LOAD_URL ?= http://localhost/w/load.php
|
|
|
|
kss: kssnodecheck
|
|
# Generates CSS of mediawiki.ui and mediawiki.ui.button using ResourceLoader, then applies it to the
|
|
# KSS style guide
|
|
$(eval KSS_RL_TMP := $(shell mktemp /tmp/tmp.XXXXXXXXXX))
|
|
$(eval MODULE_STR := $(shell paste -sd "|" styleGuideModules.txt))
|
|
# See OutputPage::makeResourceLoaderLink.
|
|
@curl -sG "${MEDIAWIKI_LOAD_URL}?modules=${MODULE_STR}&only=styles" > $(KSS_RL_TMP)
|
|
@node_modules/.bin/kss-node ../../resources/src/mediawiki.ui static/ --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}/static/index.html; exit 0; }
|
|
@xdg-open ${PWD}/static/index.html
|
|
|
|
kssnodecheck:
|
|
@scripts/kss-node-check.sh
|