react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {
  2. "name": "react-native-navigation",
  3. "version": "2.0.0",
  4. "description": "React Native Navigation - truly native navigation for iOS and Android",
  5. "license": "MIT",
  6. "nativePackage": true,
  7. "author": "Daniel Zlotin <zlotindaniel@gmail.com>",
  8. "contributors": [
  9. "Tal Kol <talkol@gmail.com>",
  10. "Guy Carmeli <guyc@wix.com>",
  11. "Ran Greenberg <rang@wix.com>",
  12. "Artal Druk <artald@wix.com>"
  13. ],
  14. "publishConfig": {
  15. "registry": "https://registry.npmjs.org/"
  16. },
  17. "bugs": {
  18. "url": "https://github.com/wix/react-native-navigation/issues"
  19. },
  20. "homepage": "https://github.com/wix/react-native-navigation",
  21. "readme": "https://github.com/wix/react-native-navigation#readme",
  22. "repository": {
  23. "type": "git",
  24. "url": "https://github.com/wix/react-native-navigation.git"
  25. },
  26. "main": "lib/dist/index.js",
  27. "scripts": {
  28. "build": "rm -rf ./lib/dist && tsc",
  29. "xcode": "open playground/ios/playground.xcodeproj",
  30. "install-android": "node ./scripts/install-android",
  31. "uninstall-android": "cd playground/android && ./gradlew uninstallAll",
  32. "clean": "node ./scripts/clean",
  33. "prestart": "npm run build",
  34. "start": "node ./scripts/start",
  35. "pretest-js": "npm run build",
  36. "test-js": "node ./scripts/test-js",
  37. "test-unit-ios": "node ./scripts/test-unit --ios",
  38. "test-unit-android": "node ./scripts/test-unit --android",
  39. "pretest-e2e-android": "npm run build",
  40. "test-e2e-android": "node ./scripts/test-e2e --android",
  41. "pretest-e2e-ios": "npm run build",
  42. "test-e2e-ios": "node ./scripts/test-e2e --ios",
  43. "test-all": "node ./scripts/test-all",
  44. "prerelease": "npm run build",
  45. "release": "node ./scripts/release",
  46. "local-docs": "node ./scripts/local-docs",
  47. "gen-docs": "echo 'this is a work in progress!!!' && ts-node ./scripts/gen-docs/Main"
  48. },
  49. "peerDependencies": {
  50. "react": "*",
  51. "react-native": "*"
  52. },
  53. "dependencies": {
  54. "lodash": "4.x.x",
  55. "prop-types": "15.x.x",
  56. "react-lifecycles-compat": "2.0.0",
  57. "@types/react": "16.x.x",
  58. "@types/react-native": "0.51.x",
  59. "@types/lodash": "4.x.x",
  60. "@types/prop-types": "15.x.x",
  61. "@types/react-test-renderer": "16.x.x",
  62. "@types/jest": "22.x.x"
  63. },
  64. "devDependencies": {
  65. "detox": "7.x.x",
  66. "jest": "22.x.x",
  67. "mocha": "4.x.x",
  68. "react": "16.2.0",
  69. "react-native": "0.51.x",
  70. "react-redux": "5.x.x",
  71. "react-test-renderer": "16.0.0-alpha.12",
  72. "redux": "3.x.x",
  73. "remx": "2.x.x",
  74. "semver": "5.x.x",
  75. "shell-utils": "1.x.x",
  76. "tslint": "5.x.x",
  77. "typescript": "2.7.x",
  78. "typedoc": "0.x.x",
  79. "handlebars": "4.x.x",
  80. "ts-node": "5.x.x"
  81. },
  82. "babel": {
  83. "env": {
  84. "test": {
  85. "presets": [
  86. "react-native"
  87. ]
  88. }
  89. }
  90. },
  91. "jest": {
  92. "preset": "react-native",
  93. "roots": [
  94. "<rootDir>/node_modules/",
  95. "<rootDir>/lib/dist/",
  96. "<rootDir>/integration/"
  97. ],
  98. "collectCoverageFrom": [
  99. "lib/dist/**/*.js",
  100. "integration/**/*.js",
  101. "!lib/dist/index.js",
  102. "!lib/dist/Navigation.js",
  103. "!lib/dist/adapters/**/*"
  104. ],
  105. "resetMocks": true,
  106. "resetModules": true,
  107. "coverageThreshold": {
  108. "global": {
  109. "branches": 100,
  110. "functions": 100,
  111. "lines": 100,
  112. "statements": 100
  113. }
  114. }
  115. },
  116. "detox": {
  117. "test-runner": "mocha",
  118. "specs": "e2e",
  119. "runner-config": "e2e/mocha.opts",
  120. "configurations": {
  121. "ios.sim.debug": {
  122. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Debug-iphonesimulator/playground.app",
  123. "build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild build -scheme playground -project playground/ios/playground.xcodeproj -sdk iphonesimulator -configuration Debug -derivedDataPath playground/ios/DerivedData/playground ONLY_ACTIVE_ARCH=YES -quiet",
  124. "type": "ios.simulator",
  125. "name": "iPhone X"
  126. },
  127. "ios.sim.release": {
  128. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Release-iphonesimulator/playground.app",
  129. "build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild build -scheme playground_release -project playground/ios/playground.xcodeproj -sdk iphonesimulator -configuration Release -derivedDataPath playground/ios/DerivedData/playground ONLY_ACTIVE_ARCH=YES -quiet",
  130. "type": "ios.simulator",
  131. "name": "iPhone X"
  132. },
  133. "android.emu.debug": {
  134. "binaryPath": "playground/android/app/build/outputs/apk/debug/app-debug.apk",
  135. "build": "cd playground/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug",
  136. "type": "android.emulator",
  137. "name": "Nexus_5X_API_26"
  138. },
  139. "android.emu.release": {
  140. "binaryPath": "playground/android/app/build/outputs/apk/release/app-release.apk",
  141. "build": "cd playground/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release",
  142. "type": "android.emulator",
  143. "name": "Nexus_5X_API_26"
  144. }
  145. }
  146. }
  147. }