Created
February 24, 2019 03:40
-
-
Save nnennajohn/a54af633cfa79a95007247ba1b8bebbd to your computer and use it in GitHub Desktop.
Add Flow annotations to all files in folder
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
// 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