Skip to content

Commit

Permalink
Merge pull request #815 from frantic/sample-app-test
Browse files Browse the repository at this point in the history
Add flowconfig to SampleApp
  • Loading branch information
frantic committed Apr 14, 2015
2 parents c412585 + 9b513ed commit 91db62b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# OS X
.DS_Store
Expand Down
27 changes: 27 additions & 0 deletions Examples/SampleApp/_flowconfig
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# node.js
#
Expand Down
4 changes: 3 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def main(dest, app_name)
files = Dir.chdir(source) { Dir["**/*"] }
.reject { |file| file["project.xcworkspace"] || file["xcuserdata"] }
.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
}
end
Expand Down
2 changes: 2 additions & 0 deletions scripts/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ cd EndToEndTest
# Make sure we installed local version of react-native
ls `basename $MARKER` > /dev/null

flow

xctool -scheme EndToEndTest -sdk iphonesimulator test

0 comments on commit 91db62b

Please sign in to comment.