Add flowconfig to SampleApp

This commit is contained in:
Alex Kotliarskyi 2015-04-14 11:36:13 -07:00
parent c412585d74
commit 9b513ede77
5 changed files with 34 additions and 1 deletions

1
.gitignore vendored
View File

@ -20,6 +20,7 @@ DerivedData
*.hmap *.hmap
*.ipa *.ipa
*.xcuserstate *.xcuserstate
project.xcworkspace
# OS X # OS X
.DS_Store .DS_Store

View File

@ -0,0 +1,27 @@
[ignore]
# We fork some components by platform.
.*/*.web.js
.*/*.android.js
# Some modules have their own node_modules with overlap
.*/node_modules/node-haste/.*
# Ignore react-tools where there are overlaps, but don't ignore anything that
# react-native relies on
.*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js
.*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js
.*/node_modules/react-tools/src/browser/ui/React.js
.*/node_modules/react-tools/src/core/ReactInstanceHandles.js
.*/node_modules/react-tools/src/event/EventPropagators.js
# Ignore jest
.*/react-native/node_modules/jest-cli/.*
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
[options]
module.system=haste

View File

@ -20,6 +20,7 @@ DerivedData
*.hmap *.hmap
*.ipa *.ipa
*.xcuserstate *.xcuserstate
project.xcworkspace
# node.js # node.js
# #

View File

@ -18,7 +18,9 @@ def main(dest, app_name)
files = Dir.chdir(source) { Dir["**/*"] } files = Dir.chdir(source) { Dir["**/*"] }
.reject { |file| file["project.xcworkspace"] || file["xcuserdata"] } .reject { |file| file["project.xcworkspace"] || file["xcuserdata"] }
.each { |file| .each { |file|
new_file = file.gsub("SampleApp", app_name) new_file = file
.gsub("SampleApp", app_name)
.gsub(/^_/, ".")
cp File.join(source, file), File.join(dest, new_file), app_name cp File.join(source, file), File.join(dest, new_file), app_name
} }
end end

View File

@ -49,4 +49,6 @@ cd EndToEndTest
# Make sure we installed local version of react-native # Make sure we installed local version of react-native
ls `basename $MARKER` > /dev/null ls `basename $MARKER` > /dev/null
flow
xctool -scheme EndToEndTest -sdk iphonesimulator test xctool -scheme EndToEndTest -sdk iphonesimulator test