mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 09:26:37 +00:00
88c4888872
'grunt build' builds modules/ve/test/index.php, demos/ve/index.php and .docs/eg-iframe.html from the associated *.template files. Got rid of the JS-based SVG/PNG switching logic. Instead, we now just use SVG unconditionally. We'd already dropped browser support for browsers that don't support SVG anyway. Change-Id: Iba2e68f17904687cb13e793a410e095f28f1b13c
23 lines
616 B
Bash
Executable file
23 lines
616 B
Bash
Executable file
#!/usr/bin/env bash
|
|
cd $(cd $(dirname $0)/..; pwd)
|
|
|
|
# allow custom path to jsduck, or custom version (eg JSDUCK=jsduck _4.10.4_)
|
|
JSDUCK=${JSDUCK:-jsduck}
|
|
|
|
# Support jsduck 4.x and 5.x
|
|
jsduckver="$($JSDUCK --version | sed -e 's/[.].*//')"
|
|
if [ "$jsduckver" = "JSDuck 4" ]; then
|
|
jsduckopt="--meta-tags .docs/MetaTags.rb"
|
|
else
|
|
jsduckopt="--tags .docs/CustomTags.rb"
|
|
fi
|
|
|
|
# Disable parallel processing which seems to be causing problems under Ruby 1.8
|
|
$JSDUCK --config .docs/config.json $jsduckopt --processes 0 --color --warnings-exit-nonzero
|
|
ec=$?
|
|
|
|
cd - > /dev/null
|
|
|
|
# Exit with exit code of jsduck command
|
|
exit $ec
|