mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-25 00:25:47 +00:00
bf90ce56ec
Plus make output more colorful. Change-Id: I9413a46a668a9ea645b27b0c6845652eb924bc7c
20 lines
369 B
Bash
Executable file
20 lines
369 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
pushd $SCRIPT_DIR > /dev/null
|
|
|
|
! jsduck \
|
|
--color \
|
|
--config=./jsduck-config.json \
|
|
-- \
|
|
`find ../resources/{multilightbox,mmv} -name '*.js'` \
|
|
|& grep -v "^Warning:" \
|
|
&& echo "JSDuck execution finished without errors."
|
|
|
|
STATUS=$?
|
|
|
|
popd > /dev/null
|
|
|
|
exit $STATUS
|
|
|