react-native-navigation的迁移库

package.json 5.3KB

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