react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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/src/index.js",
  27. "scripts": {
  28. "build": ":",
  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. "start": "node ./scripts/start.js",
  34. "test-js": "node ./scripts/test-js.js",
  35. "test-unit-android": "node ./scripts/test.unit.android.js",
  36. "test-unit-ios": "node ./scripts/test.unit.ios.js",
  37. "test-e2e-android": "node ./scripts/test.e2e.android.js",
  38. "test-e2e-ios": "node ./scripts/test.e2e.ios.js",
  39. "test-all": "node ./scripts/test.all.js",
  40. "test-watch": "jest --coverage --watch",
  41. "release": "node ./scripts/release.js",
  42. "gen-doc": "node ./scripts/generate-js-doc.js"
  43. },
  44. "peerDependencies": {
  45. "react": "*",
  46. "react-native": "*"
  47. },
  48. "dependencies": {
  49. "lodash": "4.x.x",
  50. "prop-types": "15.x.x"
  51. },
  52. "devDependencies": {
  53. "detox": "6.x.x",
  54. "eslint-config-xo": "0.18.x",
  55. "eslint-config-xo-react": "0.13.x",
  56. "eslint-plugin-react": "7.x.x",
  57. "jest": "22.x.x",
  58. "jsdoc": "3.x.x",
  59. "jsdoc-to-markdown": "3.x.x",
  60. "mocha": "4.x.x",
  61. "react": "16.2.0",
  62. "react-native": "0.51.x",
  63. "react-redux": "5.x.x",
  64. "react-test-renderer": "16.0.0-alpha.12",
  65. "redux": "3.x.x",
  66. "remx": "2.x.x",
  67. "semver": "5.x.x",
  68. "shell-utils": "1.x.x",
  69. "xo": "0.18.x"
  70. },
  71. "babel": {
  72. "env": {
  73. "test": {
  74. "presets": [
  75. "react-native"
  76. ]
  77. }
  78. }
  79. },
  80. "jest": {
  81. "preset": "react-native",
  82. "roots": [
  83. "<rootDir>/node_modules/",
  84. "<rootDir>/lib/src/",
  85. "<rootDir>/integration/"
  86. ],
  87. "collectCoverageFrom": [
  88. "lib/src/**/*.js",
  89. "integration/**/*.js",
  90. "!lib/src/index.js",
  91. "!lib/src/Navigation.js",
  92. "!lib/src/adapters/**/*"
  93. ],
  94. "resetMocks": true,
  95. "resetModules": true,
  96. "coverageThreshold": {
  97. "global": {
  98. "branches": 100,
  99. "functions": 100,
  100. "lines": 100,
  101. "statements": 100
  102. }
  103. }
  104. },
  105. "detox": {
  106. "test-runner": "mocha",
  107. "specs": "e2e",
  108. "runner-config": "e2e/mocha.opts",
  109. "configurations": {
  110. "ios.sim.debug": {
  111. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Debug-iphonesimulator/playground.app",
  112. "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",
  113. "type": "ios.simulator",
  114. "name": "iPhone SE"
  115. },
  116. "ios.sim.release": {
  117. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Release-iphonesimulator/playground.app",
  118. "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",
  119. "type": "ios.simulator",
  120. "name": "iPhone SE"
  121. }
  122. }
  123. },
  124. "xo": {
  125. "extends": "xo-react",
  126. "space": true,
  127. "env": [
  128. "node",
  129. "jest",
  130. "es6"
  131. ],
  132. "globals": [
  133. "alert"
  134. ],
  135. "overrides": [
  136. {
  137. "files": "e2e/**/*",
  138. "env": [
  139. "mocha"
  140. ],
  141. "globals": [
  142. "before",
  143. "after",
  144. "beforeEach",
  145. "afterEach",
  146. "expect",
  147. "element",
  148. "by",
  149. "device"
  150. ]
  151. }
  152. ],
  153. "settings": {
  154. "import/core-modules": [
  155. "react-native-navigation"
  156. ]
  157. },
  158. "rules": {
  159. "unicorn/filename-case": 0,
  160. "unicorn/number-literal-case": 0,
  161. "import/order": 0,
  162. "import/named": 0,
  163. "import/no-unassigned-import": 0,
  164. "import/no-unresolved": [
  165. 2,
  166. {
  167. "ignore": [
  168. "react-native-navigation"
  169. ]
  170. }
  171. ],
  172. "react/jsx-tag-spacing": 0,
  173. "react/jsx-sort-props": 0,
  174. "react/jsx-boolean-value": 0,
  175. "react/prop-types": 0,
  176. "react/jsx-no-bind": 0,
  177. "react/jsx-handler-names": 0,
  178. "react/forbid-component-props": 0,
  179. "react/jsx-curly-brace-presence": 0,
  180. "capitalized-comments": 0,
  181. "no-use-before-define": [
  182. 2,
  183. {
  184. "functions": false,
  185. "variables": false
  186. }
  187. ],
  188. "promise/param-names": 0,
  189. "no-return-assign": 0,
  190. "arrow-parens": [
  191. 2,
  192. "always"
  193. ],
  194. "object-curly-spacing": [
  195. 2,
  196. "always"
  197. ]
  198. }
  199. }
  200. }