forked from cesium-ml/cesium_web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve speed of JS package version checking
- Loading branch information
Showing
4 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
CHECKER='./node_modules/.bin/check-dependencies' | ||
|
||
if [[ ! -x ${CHECKER} ]]; then | ||
npm install check-dependencies > /dev/null 2>&1 | ||
fi | ||
|
||
# We suppress output for the next command because, annoyingly, it reports | ||
# that a dependency is unsatisfied even if the --install flag is specified, | ||
# and that package has been successfully installed | ||
${CHECKER} --install > /dev/null 2>&1 | ||
|
||
# Print report, if any unsatisfied dependencies remain | ||
if ${CHECKER}; then | ||
echo "✓ All Javascript dependencies satisfied." | ||
fi |