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. },
  50. "devDependencies": {
  51. "xo": "0.18.x",
  52. "eslint-config-xo": "0.18.x",
  53. "eslint-config-xo-react": "0.14.x",
  54. "eslint-plugin-react": "7.x.x",
  55. "detox": "6.x.x",
  56. "jest": "21.x.x",
  57. "mocha": "4.x.x",
  58. "react": "16.0.0-alpha.6",
  59. "react-native": "0.44.0",
  60. "react-test-renderer": "16.0.0-alpha.6",
  61. "remx": "2.x.x",
  62. "redux": "3.x.x",
  63. "react-redux": "5.x.x",
  64. "semver": "5.x.x",
  65. "shell-utils": "1.x.x"
  66. },
  67. "babel": {
  68. "env": {
  69. "test": {
  70. "presets": [
  71. "react-native"
  72. ]
  73. }
  74. }
  75. },
  76. "jest": {
  77. "preset": "react-native",
  78. "roots": [
  79. "<rootDir>/node_modules/",
  80. "<rootDir>/lib/src/",
  81. "<rootDir>/integration/"
  82. ],
  83. "collectCoverageFrom": [
  84. "lib/src/**/*.js",
  85. "integration/**/*.js",
  86. "!lib/src/index.js",
  87. "!lib/src/Navigation.js",
  88. "!lib/src/adapters/**/*"
  89. ],
  90. "resetMocks": true,
  91. "resetModules": true,
  92. "coverageThreshold": {
  93. "global": {
  94. "branches": 100,
  95. "functions": 100,
  96. "lines": 100,
  97. "statements": 100
  98. }
  99. }
  100. },
  101. "detox": {
  102. "test-runner": "mocha",
  103. "specs": "e2e",
  104. "runner-config": "e2e/mocha.opts",
  105. "configurations": {
  106. "ios.sim.debug": {
  107. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Debug-iphonesimulator/playground.app",
  108. "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",
  109. "type": "ios.simulator",
  110. "name": "iPhone 7"
  111. },
  112. "ios.sim.release": {
  113. "binaryPath": "playground/ios/DerivedData/playground/Build/Products/Release-iphonesimulator/playground.app",
  114. "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",
  115. "type": "ios.simulator",
  116. "name": "iPhone 7"
  117. }
  118. }
  119. },
  120. "xo": {
  121. "extends": "xo-react",
  122. "space": true,
  123. "env": [
  124. "node",
  125. "jest",
  126. "es6"
  127. ],
  128. "globals": [
  129. "alert"
  130. ],
  131. "overrides": [
  132. {
  133. "files": "e2e/**/*",
  134. "env": [
  135. "mocha"
  136. ],
  137. "globals": [
  138. "before",
  139. "after",
  140. "beforeEach",
  141. "afterEach",
  142. "expect",
  143. "element",
  144. "by",
  145. "device"
  146. ]
  147. }
  148. ],
  149. "settings": {
  150. "import/core-modules": [
  151. "react-native-navigation"
  152. ]
  153. },
  154. "rules": {
  155. "unicorn/filename-case": 0,
  156. "unicorn/number-literal-case": 0,
  157. "import/order": 0,
  158. "import/named": 0,
  159. "import/no-unassigned-import": 0,
  160. "import/no-unresolved": [
  161. 2,
  162. {
  163. "ignore": [
  164. "react-native-navigation"
  165. ]
  166. }
  167. ],
  168. "react/jsx-tag-spacing": 0,
  169. "react/jsx-curly-brace-presence": 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. }