Skip to content

Commit 9b513ed

Browse files
committed
Add flowconfig to SampleApp
1 parent c412585 commit 9b513ed

File tree

5 files changed

+34
-1
lines changed

5 files changed

+34
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23+
project.xcworkspace
2324

2425
# OS X
2526
.DS_Store

Examples/SampleApp/_flowconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[ignore]
2+
3+
# We fork some components by platform.
4+
.*/*.web.js
5+
.*/*.android.js
6+
7+
# Some modules have their own node_modules with overlap
8+
.*/node_modules/node-haste/.*
9+
10+
# Ignore react-tools where there are overlaps, but don't ignore anything that
11+
# react-native relies on
12+
.*/node_modules/react-tools/src/vendor/core/ExecutionEnvironment.js
13+
.*/node_modules/react-tools/src/browser/eventPlugins/ResponderEventPlugin.js
14+
.*/node_modules/react-tools/src/browser/ui/React.js
15+
.*/node_modules/react-tools/src/core/ReactInstanceHandles.js
16+
.*/node_modules/react-tools/src/event/EventPropagators.js
17+
18+
# Ignore jest
19+
.*/react-native/node_modules/jest-cli/.*
20+
21+
[include]
22+
23+
[libs]
24+
node_modules/react-native/Libraries/react-native/react-native-interface.js
25+
26+
[options]
27+
module.system=haste
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23+
project.xcworkspace
2324

2425
# node.js
2526
#

init.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def main(dest, app_name)
1818
files = Dir.chdir(source) { Dir["**/*"] }
1919
.reject { |file| file["project.xcworkspace"] || file["xcuserdata"] }
2020
.each { |file|
21-
new_file = file.gsub("SampleApp", app_name)
21+
new_file = file
22+
.gsub("SampleApp", app_name)
23+
.gsub(/^_/, ".")
2224
cp File.join(source, file), File.join(dest, new_file), app_name
2325
}
2426
end

scripts/e2e-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ cd EndToEndTest
4949
# Make sure we installed local version of react-native
5050
ls `basename $MARKER` > /dev/null
5151

52+
flow
53+
5254
xctool -scheme EndToEndTest -sdk iphonesimulator test

0 commit comments

Comments
 (0)