From c8b1666148d37921a4c55b0fd64aaf2bdc146c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Trys=C5=82a?= Date: Mon, 29 Jul 2019 16:21:04 +0200 Subject: [PATCH 1/7] run bundle/start tests on different fixtures --- fixtures/example-app/.babelrc | 3 - fixtures/example-app/.flowconfig | 70 - fixtures/example-app/.gitignore | 61 - fixtures/example-app/App.js | 72 - fixtures/example-app/__tests__/App.js | 12 - fixtures/example-app/android/app/BUCK | 65 - fixtures/example-app/android/app/build.gradle | 150 - .../android/app/src/main/AndroidManifest.xml | 26 - .../main/java/com/example/MainActivity.java | 15 - .../java/com/example/MainApplication.java | 45 - .../app/src/main/res/values/strings.xml | 3 - fixtures/example-app/android/build.gradle | 39 - .../gradle/wrapper/gradle-wrapper.properties | 5 - fixtures/example-app/android/settings.gradle | 3 - fixtures/example-app/app.json | 4 - fixtures/example-app/assets/haul_logo.png | Bin 52593 -> 0 bytes fixtures/example-app/haul.config.js | 9 - fixtures/example-app/index.js | 5 - .../ios/Example.xcodeproj/project.pbxproj | 1510 ---- .../xcschemes/Example-tvOS.xcscheme | 129 - .../xcshareddata/xcschemes/Example.xcscheme | 129 - .../example-app/ios/Example/AppDelegate.h | 14 - .../example-app/ios/Example/AppDelegate.m | 35 - .../ios/Example/Base.lproj/LaunchScreen.xib | 42 - fixtures/example-app/ios/Example/Info.plist | 60 - fixtures/example-app/ios/Example/main.m | 16 - .../ios/ExampleTests/ExampleTests.m | 68 - fixtures/example-app/package.json | 24 - fixtures/example-app/yarn.lock | 7463 ----------------- fixtures/exampleApp_0_59x/.buckconfig | 6 - fixtures/exampleApp_0_59x/.gitattributes | 1 - fixtures/exampleApp_0_59x/.watchmanconfig | 1 - .../android/app/proguard-rules.pro | 17 - .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 3056 -> 0 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 5024 -> 0 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 2096 -> 0 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 2858 -> 0 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 4569 -> 0 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 7098 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 6464 -> 0 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 10676 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 9250 -> 0 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 15523 -> 0 bytes .../app/src/main/res/values/styles.xml | 8 - .../android/gradle.properties | 18 - .../android/gradle/wrapper/gradle-wrapper.jar | Bin 54329 -> 0 bytes fixtures/exampleApp_0_59x/android/gradlew | 172 - fixtures/exampleApp_0_59x/android/gradlew.bat | 84 - .../exampleApp_0_59x/android/keystores/BUCK | 8 - .../keystores/debug.keystore.properties | 4 - .../ios/exampleApp_0_59x-tvOS/Info.plist | 54 - .../ios/exampleApp_0_59x-tvOSTests/Info.plist | 24 - .../AppIcon.appiconset/Contents.json | 38 - .../Images.xcassets/Contents.json | 6 - .../ios/exampleApp_0_59xTests/Info.plist | 24 - .../.buckconfig | 0 .../.flowconfig | 0 .../.gitattributes | 0 .../.gitignore | 0 .../.watchmanconfig | 0 .../App.js | 0 .../Container.js | 0 .../LazyApp.js | 0 .../Loading.js | 0 .../__tests__/App-test.js | 0 .../android/app/BUCK | 0 .../android/app/build.gradle | 0 .../android/app/build_defs.bzl | 0 .../android/app/proguard-rules.pro | 0 .../android/app/src/debug/AndroidManifest.xml | 0 .../android/app/src/main/AndroidManifest.xml | 0 .../com/exampleapp_0_59x/MainActivity.java | 0 .../com/exampleapp_0_59x/MainApplication.java | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../res/mipmap-hdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../res/mipmap-mdpi/ic_launcher_round.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../res/mipmap-xhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin .../app/src/main/res/values/strings.xml | 0 .../app/src/main/res/values/styles.xml | 0 .../android/build.gradle | 0 .../android/gradle.properties | 0 .../android/gradle/wrapper/gradle-wrapper.jar | Bin .../gradle/wrapper/gradle-wrapper.properties | 0 .../android/gradlew | 0 .../android/gradlew.bat | 0 .../android/keystores/BUCK | 0 .../keystores/debug.keystore.properties | 0 .../android/settings.gradle | 0 .../app.json | 0 .../babel.config.js | 0 .../haul.config.js | 0 .../index.js | 0 .../ios/exampleApp_0_59x-tvOS}/Info.plist | 0 .../exampleApp_0_59x-tvOSTests}/Info.plist | 0 .../project.pbxproj | 0 .../xcschemes/exampleApp_0_59x-tvOS.xcscheme | 0 .../xcschemes/exampleApp_0_59x.xcscheme | 0 .../ios/exampleApp_0_59x/AppDelegate.h | 0 .../ios/exampleApp_0_59x/AppDelegate.m | 0 .../Base.lproj/LaunchScreen.xib | 0 .../AppIcon.appiconset/Contents.json | 0 .../Images.xcassets/Contents.json | 0 .../ios/exampleApp_0_59x/Info.plist | 0 .../ios/exampleApp_0_59x/main.m | 0 .../ios/exampleApp_0_59xTests}/Info.plist | 0 .../exampleApp_0_59xTests.m | 0 .../metro.config.js | 0 .../package.json | 0 .../yarn.lock | 0 ...libraries_newappscreen_components_logo.png | Bin 0 -> 24031 bytes ...libraries_newappscreen_components_logo.png | Bin 0 -> 24031 bytes .../__tests__/bundle/bundle.android.test.js | 19 - .../__tests__/bundle/bundle.ios.test.js | 19 - integration_tests/__tests__/bundle/utils.js | 41 - integration_tests/__tests__/start.test.js | 57 - integration_tests/jest.config.js | 7 - .../__snapshots__/init.test.ts.snap} | 0 .../__tests__/bundle.android.test.ts | 18 + .../__tests__/bundle.ios.test.ts | 18 + .../__tests__/init.test.ts} | 23 +- .../__tests__/start.test.ts | 33 + .../react_native_0_59x/jest.config.js | 9 + .../__tests__/bundle.android.test.ts | 18 + .../__tests__/bundle.ios.test.ts | 18 + .../__tests__/start.test.ts | 33 + .../react_native_0_60x/jest.config.js | 9 + .../__tests__/multiBundle.test.ts} | 48 +- .../jest.config.js | 9 + .../__tests__/bundle.android.test.ts | 18 + .../__tests__/bundle.ios.test.ts | 18 + .../__tests__/start.test.ts | 33 + .../react_native_0_60x_ts/jest.config.js | 9 + integration_tests/utils/bundle.ts | 29 + .../{utils.js => utils/common.js} | 0 integration_tests/{ => utils}/runHaul.js | 2 +- integration_tests/utils/server.ts | 53 + jest.config.js | 10 +- package.json | 1 + .../jest.config.js | 2 +- .../jest.config.js | 4 +- 146 files changed, 369 insertions(+), 10731 deletions(-) delete mode 100644 fixtures/example-app/.babelrc delete mode 100644 fixtures/example-app/.flowconfig delete mode 100644 fixtures/example-app/.gitignore delete mode 100644 fixtures/example-app/App.js delete mode 100644 fixtures/example-app/__tests__/App.js delete mode 100644 fixtures/example-app/android/app/BUCK delete mode 100644 fixtures/example-app/android/app/build.gradle delete mode 100644 fixtures/example-app/android/app/src/main/AndroidManifest.xml delete mode 100644 fixtures/example-app/android/app/src/main/java/com/example/MainActivity.java delete mode 100644 fixtures/example-app/android/app/src/main/java/com/example/MainApplication.java delete mode 100644 fixtures/example-app/android/app/src/main/res/values/strings.xml delete mode 100644 fixtures/example-app/android/build.gradle delete mode 100644 fixtures/example-app/android/gradle/wrapper/gradle-wrapper.properties delete mode 100644 fixtures/example-app/android/settings.gradle delete mode 100644 fixtures/example-app/app.json delete mode 100644 fixtures/example-app/assets/haul_logo.png delete mode 100644 fixtures/example-app/haul.config.js delete mode 100644 fixtures/example-app/index.js delete mode 100644 fixtures/example-app/ios/Example.xcodeproj/project.pbxproj delete mode 100644 fixtures/example-app/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-tvOS.xcscheme delete mode 100644 fixtures/example-app/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme delete mode 100644 fixtures/example-app/ios/Example/AppDelegate.h delete mode 100644 fixtures/example-app/ios/Example/AppDelegate.m delete mode 100644 fixtures/example-app/ios/Example/Base.lproj/LaunchScreen.xib delete mode 100644 fixtures/example-app/ios/Example/Info.plist delete mode 100644 fixtures/example-app/ios/Example/main.m delete mode 100644 fixtures/example-app/ios/ExampleTests/ExampleTests.m delete mode 100644 fixtures/example-app/package.json delete mode 100644 fixtures/example-app/yarn.lock delete mode 100644 fixtures/exampleApp_0_59x/.buckconfig delete mode 100644 fixtures/exampleApp_0_59x/.gitattributes delete mode 100644 fixtures/exampleApp_0_59x/.watchmanconfig delete mode 100644 fixtures/exampleApp_0_59x/android/app/proguard-rules.pro delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png delete mode 100644 fixtures/exampleApp_0_59x/android/app/src/main/res/values/styles.xml delete mode 100644 fixtures/exampleApp_0_59x/android/gradle.properties delete mode 100644 fixtures/exampleApp_0_59x/android/gradle/wrapper/gradle-wrapper.jar delete mode 100755 fixtures/exampleApp_0_59x/android/gradlew delete mode 100644 fixtures/exampleApp_0_59x/android/gradlew.bat delete mode 100644 fixtures/exampleApp_0_59x/android/keystores/BUCK delete mode 100644 fixtures/exampleApp_0_59x/android/keystores/debug.keystore.properties delete mode 100644 fixtures/exampleApp_0_59x/ios/exampleApp_0_59x-tvOS/Info.plist delete mode 100644 fixtures/exampleApp_0_59x/ios/exampleApp_0_59x-tvOSTests/Info.plist delete mode 100644 fixtures/exampleApp_0_59x/ios/exampleApp_0_59x/Images.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 fixtures/exampleApp_0_59x/ios/exampleApp_0_59x/Images.xcassets/Contents.json delete mode 100644 fixtures/exampleApp_0_59x/ios/exampleApp_0_59xTests/Info.plist rename fixtures/{example-app => react_native_with_haul_0_59x}/.buckconfig (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/.flowconfig (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/.gitattributes (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/.gitignore (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/.watchmanconfig (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/App.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/Container.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/LazyApp.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/Loading.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/__tests__/App-test.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/BUCK (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/build.gradle (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/build_defs.bzl (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/proguard-rules.pro (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/src/debug/AndroidManifest.xml (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/src/main/AndroidManifest.xml (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/src/main/java/com/exampleapp_0_59x/MainActivity.java (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/src/main/java/com/exampleapp_0_59x/MainApplication.java (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/app/src/main/res/values/strings.xml (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/app/src/main/res/values/styles.xml (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/build.gradle (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/gradle.properties (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/gradle/wrapper/gradle-wrapper.jar (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/gradle/wrapper/gradle-wrapper.properties (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/gradlew (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/gradlew.bat (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/keystores/BUCK (100%) rename fixtures/{example-app => react_native_with_haul_0_59x}/android/keystores/debug.keystore.properties (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/android/settings.gradle (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/app.json (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/babel.config.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/haul.config.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/index.js (100%) rename fixtures/{example-app/ios/Example-tvOS => react_native_with_haul_0_59x/ios/exampleApp_0_59x-tvOS}/Info.plist (100%) rename fixtures/{example-app/ios/Example-tvOSTests => react_native_with_haul_0_59x/ios/exampleApp_0_59x-tvOSTests}/Info.plist (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x.xcodeproj/project.pbxproj (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x.xcodeproj/xcshareddata/xcschemes/exampleApp_0_59x-tvOS.xcscheme (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x.xcodeproj/xcshareddata/xcschemes/exampleApp_0_59x.xcscheme (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x/AppDelegate.h (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x/AppDelegate.m (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x/Base.lproj/LaunchScreen.xib (100%) rename fixtures/{example-app/ios/Example => react_native_with_haul_0_59x/ios/exampleApp_0_59x}/Images.xcassets/AppIcon.appiconset/Contents.json (100%) rename fixtures/{example-app/ios/Example => react_native_with_haul_0_59x/ios/exampleApp_0_59x}/Images.xcassets/Contents.json (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x/Info.plist (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59x/main.m (100%) rename fixtures/{example-app/ios/ExampleTests => react_native_with_haul_0_59x/ios/exampleApp_0_59xTests}/Info.plist (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/ios/exampleApp_0_59xTests/exampleApp_0_59xTests.m (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/metro.config.js (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/package.json (100%) rename fixtures/{exampleApp_0_59x => react_native_with_haul_0_59x}/yarn.lock (100%) create mode 100644 fixtures/react_native_with_haul_0_60x/drawable-mdpi/node_modules_reactnative_libraries_newappscreen_components_logo.png create mode 100644 fixtures/react_native_with_haul_0_60x_ts/drawable-mdpi/node_modules_reactnative_libraries_newappscreen_components_logo.png delete mode 100644 integration_tests/__tests__/bundle/bundle.android.test.js delete mode 100644 integration_tests/__tests__/bundle/bundle.ios.test.js delete mode 100644 integration_tests/__tests__/bundle/utils.js delete mode 100644 integration_tests/__tests__/start.test.js delete mode 100644 integration_tests/jest.config.js rename integration_tests/{__tests__/__snapshots__/init.test.js.snap => react_native_0_59x/__tests__/__snapshots__/init.test.ts.snap} (100%) create mode 100644 integration_tests/react_native_0_59x/__tests__/bundle.android.test.ts create mode 100644 integration_tests/react_native_0_59x/__tests__/bundle.ios.test.ts rename integration_tests/{__tests__/init.test.js => react_native_0_59x/__tests__/init.test.ts} (79%) create mode 100644 integration_tests/react_native_0_59x/__tests__/start.test.ts create mode 100644 integration_tests/react_native_0_59x/jest.config.js create mode 100644 integration_tests/react_native_0_60x/__tests__/bundle.android.test.ts create mode 100644 integration_tests/react_native_0_60x/__tests__/bundle.ios.test.ts create mode 100644 integration_tests/react_native_0_60x/__tests__/start.test.ts create mode 100644 integration_tests/react_native_0_60x/jest.config.js rename integration_tests/{__tests__/multiBundle.test.js => react_native_0_60x_multibundle/__tests__/multiBundle.test.ts} (85%) create mode 100644 integration_tests/react_native_0_60x_multibundle/jest.config.js create mode 100644 integration_tests/react_native_0_60x_ts/__tests__/bundle.android.test.ts create mode 100644 integration_tests/react_native_0_60x_ts/__tests__/bundle.ios.test.ts create mode 100644 integration_tests/react_native_0_60x_ts/__tests__/start.test.ts create mode 100644 integration_tests/react_native_0_60x_ts/jest.config.js create mode 100644 integration_tests/utils/bundle.ts rename integration_tests/{utils.js => utils/common.js} (100%) rename integration_tests/{ => utils}/runHaul.js (94%) create mode 100644 integration_tests/utils/server.ts diff --git a/fixtures/example-app/.babelrc b/fixtures/example-app/.babelrc deleted file mode 100644 index d4b74b5b..00000000 --- a/fixtures/example-app/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["module:metro-react-native-babel-preset"] -} diff --git a/fixtures/example-app/.flowconfig b/fixtures/example-app/.flowconfig deleted file mode 100644 index 1043c82d..00000000 --- a/fixtures/example-app/.flowconfig +++ /dev/null @@ -1,70 +0,0 @@ -[ignore] -; We fork some components by platform -.*/*[.]android.js - -; Ignore "BUCK" generated dirs -/\.buckd/ - -; Ignore unexpected extra "@providesModule" -.*/node_modules/.*/node_modules/fbjs/.* - -; Ignore duplicate module providers -; For RN Apps installed via npm, "Libraries" folder is inside -; "node_modules/react-native" but in the source repo it is in the root -.*/Libraries/react-native/React.js - -; Ignore polyfills -.*/Libraries/polyfills/.* - -; Ignore metro -.*/node_modules/metro/.* - -[include] - -[libs] -node_modules/react-native/Libraries/react-native/react-native-interface.js -node_modules/react-native/flow/ -node_modules/react-native/flow-github/ - -[options] -emoji=true - -esproposal.optional_chaining=enable -esproposal.nullish_coalescing=enable - -module.system=haste -module.system.haste.use_name_reducers=true -# get basename -module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' -# strip .js or .js.flow suffix -module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' -# strip .ios suffix -module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' -module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' -module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' -module.system.haste.paths.blacklist=.*/__tests__/.* -module.system.haste.paths.blacklist=.*/__mocks__/.* -module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* -module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* - -munge_underscores=true - -module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' - -module.file_ext=.js -module.file_ext=.jsx -module.file_ext=.json -module.file_ext=.native.js - -suppress_type=$FlowIssue -suppress_type=$FlowFixMe -suppress_type=$FlowFixMeProps -suppress_type=$FlowFixMeState - -suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) -suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ -suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy -suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError - -[version] -^0.78.0 diff --git a/fixtures/example-app/.gitignore b/fixtures/example-app/.gitignore deleted file mode 100644 index ededbdc6..00000000 --- a/fixtures/example-app/.gitignore +++ /dev/null @@ -1,61 +0,0 @@ -# OSX -# -.DS_Store - -# Xcode -# -build/ -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 -xcuserdata -*.xccheckout -*.moved-aside -DerivedData -*.hmap -*.ipa -*.xcuserstate -project.xcworkspace - -# Android/IntelliJ -# -build/ -.idea -.gradle -local.properties -*.iml - -# node.js -# -node_modules/ -npm-debug.log -yarn-error.log - -# BUCK -buck-out/ -\.buckd/ -*.keystore - -# fastlane -# -# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the -# screenshots whenever they are needed. -# For more information about the recommended setup visit: -# https://docs.fastlane.tools/best-practices/source-control/ - -*/fastlane/report.xml -*/fastlane/Preview.html -*/fastlane/screenshots - -# Haul -# -haul-debug.log - -# Bundle artifact -# -*.jsbundle diff --git a/fixtures/example-app/App.js b/fixtures/example-app/App.js deleted file mode 100644 index bac71a58..00000000 --- a/fixtures/example-app/App.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - * @flow - */ - -import React, { Component } from 'react'; -import { Platform, StyleSheet, Text, View, Button, Image } from 'react-native'; -import image from './assets/haul_logo.png'; - -const instructions = Platform.select({ - ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', - android: - 'Double tap R on your keyboard to reload,\n' + - 'Shake or press menu button for dev menu', -}); - -type State = { - number: number, -}; - -export default class App extends Component<{}, State> { - state = { - number: 0, - }; - - increment = (prevState: State) => ({ number: prevState.number + 1 }); - decrement = (prevState: State) => ({ number: prevState.number - 1 }); - - render() { - return ( - - - Welcome to React Native with Haul!! - To get started, edit App.js - {instructions} - {this.state.number} -