Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flowconfig to SampleApp #815

Merged
merged 1 commit into from
Apr 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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