diff --git a/devTools/checkJS.sh b/devTools/checkJS.sh new file mode 100755 index 0000000000000000000000000000000000000000..a6cb4356a17232fe03a46e9d9b6a3ff4c2b62f66 --- /dev/null +++ b/devTools/checkJS.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +tmpJoinedFile=`mktemp --suffix=.js` + +files=$(find js src -name '*.js' -print) +files=$(echo "$files" | sort) +for f in $files; do + printf "\n/* ${f} */\n" >> "$tmpJoinedFile" + cat "$f" >> "$tmpJoinedFile" +done + +node -c "$tmpJoinedFile" + +test $? -eq 0 && rm "$tmpJoinedFile" diff --git a/devTools/makeTwineJSPassage.sh b/devTools/makeTwineJSPassage.sh index 9b4c4b85261e294b25ff91c7a9fc939890d7151c..1699140b1c6275ff57cc0b8d220966dc7dbd7a84 100755 --- a/devTools/makeTwineJSPassage.sh +++ b/devTools/makeTwineJSPassage.sh @@ -6,7 +6,7 @@ # $1: root repo dir # $2: output file name collectJSForTwine() { - local files=$(find js src/js -path ./art/assistantArt.js -prune -o -name '*.js' -print) + local files=$(find js src -path ./src/art/assistantArt.js -prune -o -name '*.js' -print) files=$(echo "$files" | sort) echo "" > "$2" for f in $files; do