package.json 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. {
  2. "name": "react-native",
  3. "version": "0.63.4",
  4. "bin": "./cli.js",
  5. "description": "A framework for building native apps using React",
  6. "license": "MIT",
  7. "repository": {
  8. "type": "git",
  9. "url": "git@github.com:facebook/react-native.git"
  10. },
  11. "engines": {
  12. "node": ">=10"
  13. },
  14. "jest-junit": {
  15. "outputDirectory": "reports/junit",
  16. "outputName": "js-test-results.xml"
  17. },
  18. "files": [
  19. "!template/node_modules",
  20. "!template/package-lock.json",
  21. "!template/yarn.lock",
  22. ".flowconfig",
  23. "android",
  24. "cli.js",
  25. "flow",
  26. "index.js",
  27. "init.sh",
  28. "interface.js",
  29. "jest-preset.js",
  30. "jest",
  31. "lib",
  32. "Libraries",
  33. "LICENSE",
  34. "local-cli",
  35. "packager",
  36. "React-Core.podspec",
  37. "react-native.config.js",
  38. "react.gradle",
  39. "React.podspec",
  40. "React",
  41. "ReactAndroid",
  42. "ReactCommon",
  43. "README.md",
  44. "rn-get-polyfills.js",
  45. "scripts/react_native_pods.rb",
  46. "scripts/compose-source-maps.js",
  47. "scripts/ios-configure-glog.sh",
  48. "scripts/launchPackager.bat",
  49. "scripts/launchPackager.command",
  50. "scripts/node-binary.sh",
  51. "scripts/packager.sh",
  52. "scripts/react-native-xcode.sh",
  53. "template.config.js",
  54. "template",
  55. "third-party-podspecs"
  56. ],
  57. "scripts": {
  58. "start": "react-native start",
  59. "test": "jest",
  60. "test-ci": "jest --maxWorkers=2 --ci --reporters=\"default\" --reporters=\"jest-junit\"",
  61. "flow": "flow",
  62. "flow-check-ios": "flow check",
  63. "flow-check-android": "flow check --flowconfig-name .flowconfig.android",
  64. "lint": "eslint .",
  65. "lint-ci": "./scripts/circleci/analyze_code.sh && yarn shellcheck",
  66. "shellcheck": "./scripts/circleci/analyze_scripts.sh",
  67. "clang-format": "clang-format -i --glob=*/**/*.{h,cpp,m,mm}",
  68. "format": "npm run prettier && npm run clang-format",
  69. "prettier": "prettier --write \"./**/*.{js,md,yml}\"",
  70. "format-check": "prettier --list-different \"./**/*.{js,md,yml}\"",
  71. "docker-setup-android": "docker pull reactnativecommunity/react-native-android",
  72. "docker-build-android": "docker build -t reactnativeci/android -f .circleci/Dockerfiles/Dockerfile.android .",
  73. "test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh",
  74. "test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh",
  75. "test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-ci-e2e-tests.sh --android --js",
  76. "test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e",
  77. "test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation",
  78. "test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
  79. "test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
  80. "build-ios-e2e": "detox build -c ios.sim.release",
  81. "test-ios-e2e": "detox test -c ios.sim.release RNTester/e2e",
  82. "test-ios": "./scripts/objc-test.sh test"
  83. },
  84. "peerDependencies": {
  85. "react": "16.13.1"
  86. },
  87. "dependencies": {
  88. "@babel/runtime": "^7.0.0",
  89. "@react-native-community/cli": "^4.10.0",
  90. "@react-native-community/cli-platform-android": "^4.10.0",
  91. "@react-native-community/cli-platform-ios": "^4.10.0",
  92. "abort-controller": "^3.0.0",
  93. "anser": "^1.4.9",
  94. "base64-js": "^1.1.2",
  95. "event-target-shim": "^5.0.1",
  96. "fbjs": "^1.0.0",
  97. "fbjs-scripts": "^1.1.0",
  98. "hermes-engine": "~0.5.0",
  99. "invariant": "^2.2.4",
  100. "jsc-android": "^245459.0.0",
  101. "metro-babel-register": "0.59.0",
  102. "metro-react-native-babel-transformer": "0.59.0",
  103. "metro-source-map": "0.59.0",
  104. "nullthrows": "^1.1.1",
  105. "pretty-format": "^24.9.0",
  106. "promise": "^8.0.3",
  107. "prop-types": "^15.7.2",
  108. "react-devtools-core": "^4.6.0",
  109. "react-refresh": "^0.4.0",
  110. "regenerator-runtime": "^0.13.2",
  111. "scheduler": "0.19.1",
  112. "stacktrace-parser": "^0.1.3",
  113. "use-subscription": "^1.0.0",
  114. "whatwg-fetch": "^3.0.0"
  115. },
  116. "devDependencies": {
  117. "@babel/core": "^7.0.0",
  118. "@babel/generator": "^7.5.0",
  119. "@react-native-community/eslint-plugin": "file:packages/eslint-plugin-react-native-community",
  120. "@reactions/component": "^2.0.2",
  121. "async": "^2.4.0",
  122. "babel-eslint": "10.0.1",
  123. "clang-format": "^1.2.4",
  124. "connect": "^3.6.5",
  125. "coveralls": "^3.0.2",
  126. "detox": "16.7.2",
  127. "eslint": "5.1.0",
  128. "eslint-config-fb-strict": "^24.9.0",
  129. "eslint-config-fbjs": "2.1.0",
  130. "eslint-config-prettier": "^6.0.0",
  131. "eslint-plugin-babel": "^5.3.0",
  132. "eslint-plugin-eslint-comments": "^3.1.1",
  133. "eslint-plugin-flowtype": "2.50.3",
  134. "eslint-plugin-jest": "22.4.1",
  135. "eslint-plugin-jsx-a11y": "6.2.1",
  136. "eslint-plugin-prettier": "2.6.2",
  137. "eslint-plugin-react": "7.12.4",
  138. "eslint-plugin-react-hooks": "^3.0.0",
  139. "eslint-plugin-react-native": "3.8.1",
  140. "eslint-plugin-relay": "1.7.0",
  141. "flow-bin": "^0.122.0",
  142. "flow-remove-types": "1.2.3",
  143. "jest": "^24.9.0",
  144. "jest-junit": "^6.3.0",
  145. "jscodeshift": "^0.7.0",
  146. "mkdirp": "^0.5.1",
  147. "prettier": "1.17.0",
  148. "react": "16.13.1",
  149. "react-test-renderer": "16.13.1",
  150. "shelljs": "^0.7.8",
  151. "signedsource": "^1.0.0",
  152. "ws": "^6.1.4",
  153. "yargs": "^14.2.0"
  154. },
  155. "detox": {
  156. "test-runner": "jest",
  157. "runner-config": "RNTester/e2e/config.json",
  158. "specs": "",
  159. "configurations": {
  160. "android.emu.release": {
  161. "binaryPath": "RNTester/android/app/build/outputs/apk/hermes/release/app-hermes-x86-release.apk",
  162. "testBinaryPath": "RNTester/android/app/build/outputs/apk/androidTest/hermes/release/app-hermes-release-androidTest.apk",
  163. "build": "./gradlew RNTester:android:app:assembleRelease RNTester:android:app:assembleAndroidTest -DtestBuildType=release",
  164. "type": "android.emulator",
  165. "device": {
  166. "avdName": "Nexus_6_API_29"
  167. }
  168. },
  169. "android.emu.debug": {
  170. "binaryPath": "RNTester/android/app/build/outputs/apk/hermes/debug/app-hermes-x86-debug.apk",
  171. "testBinaryPath": "RNTester/android/app/build/outputs/apk/androidTest/hermes/debug/app-hermes-debug-androidTest.apk",
  172. "build": "./gradlew RNTester:android:app:assembleDebug RNTester:android:app:assembleAndroidTest -DtestBuildType=debug",
  173. "type": "android.emulator",
  174. "device": {
  175. "avdName": "Nexus_6_API_29"
  176. }
  177. },
  178. "ios.sim.release": {
  179. "binaryPath": "RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/",
  180. "build": "xcodebuild -workspace RNTester/RNTesterPods.xcworkspace -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath RNTester/build -UseModernBuildSystem=NO -quiet",
  181. "type": "ios.simulator",
  182. "name": "iPhone 8"
  183. },
  184. "ios.sim.debug": {
  185. "binaryPath": "RNTester/build/Build/Products/Debug-iphonesimulator/RNTester.app/",
  186. "build": "xcodebuild -workspace RNTester/RNTesterPods.xcworkspace -scheme RNTester -configuration Debug -sdk iphonesimulator -derivedDataPath RNTester/build -UseModernBuildSystem=NO -quiet",
  187. "type": "ios.simulator",
  188. "name": "iPhone 8"
  189. }
  190. }
  191. }
  192. }