Created
March 18, 2017 13:51
-
-
Save pokorson/108aa7c0e92344e7adcbe8f83b5b286e to your computer and use it in GitHub Desktop.
Add flow annotation to all js
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
files = Dir.glob("./src/**/*").select { |f| f.include?('.js') } | |
files.each do |f| | |
content = IO.read(f) | |
IO.write f, "// @flow \n\n#{content}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment