Skip to content

Instantly share code, notes, and snippets.

@koss-lebedev koss-lebedev/hasFlow.sh
Last active May 25, 2018

Embed
What would you like to do?
FILES_WITHOUT_FLOW="$(grep -r --include=\*.js -L "@flow" src)"
FILES_COUNT=$(echo $FILES_WITHOUT_FLOW | wc -w)
if [ $FILES_COUNT -ne 0 ]
then
echo "Following files are missing @flow annotation:"
echo $FILES_WITHOUT_FLOW | tr " " "\n"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.