react-native-navigation的迁移库

package.json 5.0KB

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