react-native-navigation的迁移库

package.json 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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.js",
  31. "uninstall-android": "cd playground/android && ./gradlew uninstallAll",
  32. "clean": "node ./scripts/clean.js",
  33. "prestart": "npm run build",
  34. "start": "node ./scripts/start.js",
  35. "pretest-js": "npm run build",
  36. "test-js": "node ./scripts/test-js.js",
  37. "test-unit-android": "node ./scripts/test.unit.android.js",
  38. "test-unit-ios": "node ./scripts/test.unit.ios.js",
  39. "pretest-e2e-android": "npm run build",
  40. "test-e2e-android": "node ./scripts/test.e2e.android.js",
  41. "test-e2e-android-detox": "node ./scripts/test.e2e.android.detox.js",
  42. "pretest-e2e-ios": "npm run build",
  43. "test-e2e-ios": "node ./scripts/test.e2e.ios.js",
  44. "test-all": "node ./scripts/test.all.js",
  45. "release": "node ./scripts/release.js"
  46. },
  47. "peerDependencies": {
  48. "react": "*",
  49. "react-native": "*"
  50. },
  51. "dependencies": {
  52. "lodash": "4.x.x",
  53. "prop-types": "15.x.x",
  54. "tslib": "1.x.x",
  55. "@types/react": "16.x.x",
  56. "@types/react-native": "0.49.x",
  57. "@types/lodash": "4.x.x",
  58. "@types/prop-types": "15.x.x",
  59. "@types/react-test-renderer": "16.x.x",
  60. "@types/jest": "22.x.x"
  61. },
  62. "devDependencies": {
  63. "detox": "7.x.x",
  64. "jest": "22.x.x",
  65. "mocha": "4.x.x",
  66. "react": "16.0.0-beta.5",
  67. "react-native": "0.49.x",
  68. "react-redux": "5.x.x",
  69. "react-test-renderer": "16.0.0-alpha.12",
  70. "redux": "3.x.x",
  71. "remx": "2.x.x",
  72. "semver": "5.x.x",
  73. "shell-utils": "1.x.x",
  74. "tslint": "5.x.x",
  75. "typescript": "2.x.x"
  76. },
  77. "babel": {
  78. "env": {
  79. "test": {
  80. "presets": [
  81. "react-native"
  82. ]
  83. }
  84. }
  85. },
  86. "jest": {
  87. "preset": "react-native",
  88. "roots": [
  89. "<rootDir>/node_modules/",
  90. "<rootDir>/lib/dist/",
  91. "<rootDir>/integration/"
  92. ],
  93. "collectCoverageFrom": [
  94. "lib/dist/**/*.js",
  95. "integration/**/*.js",
  96. "!lib/dist/index.js",
  97. "!lib/dist/Navigation.js",
  98. "!lib/dist/adapters/**/*"
  99. ],
  100. "resetMocks": true,
  101. "resetModules": true,
  102. "coverageThreshold": {
  103. "global": {
  104. "branches": 100,
  105. "functions": 100,
  106. "lines": 100,
  107. "statements": 100
  108. }
  109. }
  110. },
  111. "detox": {
  112. "test-runner": "mocha",
  113. "specs": "e2e",
  114. "runner-config": "e2e/mocha.opts",
  115. "configurations": {
  116. "ios.sim.debug": {
  117. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Debug-iphonesimulator/playground.app",
  118. "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",
  119. "type": "ios.simulator",
  120. "name": "iPhone SE"
  121. },
  122. "ios.sim.release": {
  123. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Release-iphonesimulator/playground.app",
  124. "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",
  125. "type": "ios.simulator",
  126. "name": "iPhone SE"
  127. },
  128. "android.emu.debug": {
  129. "binaryPath": "playground/android/app/build/outputs/apk/debug/app-debug.apk",
  130. "build": "cd playground/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ../..",
  131. "type": "android.emulator",
  132. "name": "Nexus_5X_API_26"
  133. },
  134. "android.emu.release": {
  135. "binaryPath": "playground/android/app/build/outputs/apk/release/app-release.apk",
  136. "build": "cd playground/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ../..",
  137. "type": "android.emulator",
  138. "name": "Nexus_5X_API_26"
  139. }
  140. }
  141. }
  142. }