mediawiki-extensions-Multim.../docs/generate
Gergő Tisza 289ad22b19 Fix JSDuck
* update paths
* make generate script return failure state on failure
* fix some issues so that it does not actually fail

Change-Id: Idd42e0d8e333c461091079aa1150b1b435e6360c
2014-02-06 19:10:07 +00:00

16 lines
352 B
Bash
Executable file

#!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $SCRIPT_DIR > /dev/null
jsduck \
--config=./jsduck-config.json \
--color --warnings-exit-nonzero \
-- \
`find ../resources/{multilightbox,mmv} -name '*.js'` \
&& echo 'JSDuck execution finished.'
RESULT=$?
popd > /dev/null
exit $RESULT