Skip to content

Instantly share code, notes, and snippets.

@pokorson
Created March 18, 2017 13:51
Show Gist options
  • Save pokorson/108aa7c0e92344e7adcbe8f83b5b286e to your computer and use it in GitHub Desktop.
Save pokorson/108aa7c0e92344e7adcbe8f83b5b286e to your computer and use it in GitHub Desktop.
Add flow annotation to all js
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