Skip to content

Instantly share code, notes, and snippets.

@nnennajohn
Created February 24, 2019 03:40
Show Gist options
  • Save nnennajohn/a54af633cfa79a95007247ba1b8bebbd to your computer and use it in GitHub Desktop.
Save nnennajohn/a54af633cfa79a95007247ba1b8bebbd to your computer and use it in GitHub Desktop.
Add Flow annotations to all files in folder
// First install gnu-sed for mac. Could not get sed to work properly with new line
// brew install gnu-sed
for i in $(find `pwd` -name "*.jsx");
do
gsed -i '1i// @flow' "${i%}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment