2014-01-11 00:05:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2014-01-22 00:11:18 +00:00
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
pushd $SCRIPT_DIR > /dev/null
|
2014-02-14 20:22:55 +00:00
|
|
|
|
|
|
|
! jsduck \
|
|
|
|
--color \
|
2014-02-03 23:20:54 +00:00
|
|
|
--config=./jsduck-config.json \
|
|
|
|
-- \
|
|
|
|
`find ../resources/{multilightbox,mmv} -name '*.js'` \
|
2014-02-14 20:22:55 +00:00
|
|
|
|& grep -v "^Warning:" \
|
|
|
|
&& echo "JSDuck execution finished without errors."
|
2014-02-03 23:20:54 +00:00
|
|
|
|
2014-02-14 20:22:55 +00:00
|
|
|
STATUS=$?
|
2014-02-12 22:18:13 +00:00
|
|
|
|
2014-01-22 00:11:18 +00:00
|
|
|
popd > /dev/null
|
2014-02-03 23:20:54 +00:00
|
|
|
|
2014-02-14 20:22:55 +00:00
|
|
|
exit $STATUS
|
|
|
|
|