react-native-navigation的迁移库

package.json 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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": "BABEL_ENV=test 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.13.x",
  54. "eslint-plugin-react": "7.x.x",
  55. "babel-cli": "6.x.x",
  56. "babel-core": "6.x.x",
  57. "babel-jest": "20.x.x",
  58. "babel-polyfill": "6.x.x",
  59. "babel-preset-react-native": "2.x.x",
  60. "babel-register": "6.x.x",
  61. "detox": "5.x.x",
  62. "jest": "20.x.x",
  63. "jest-cli": "20.x.x",
  64. "mocha": "3.x.x",
  65. "react": "16.0.0-alpha.6",
  66. "react-native": "0.44.0",
  67. "react-test-renderer": "16.0.0-alpha.6",
  68. "remx": "1.x.x",
  69. "semver": "5.x.x",
  70. "shell-utils": "1.x.x"
  71. },
  72. "babel": {
  73. "env": {
  74. "test": {
  75. "presets": [
  76. "react-native"
  77. ],
  78. "retainLines": true
  79. }
  80. }
  81. },
  82. "jest": {
  83. "preset": "react-native",
  84. "roots": [
  85. "<rootDir>/node_modules/",
  86. "<rootDir>/lib/src/",
  87. "<rootDir>/integration/"
  88. ],
  89. "collectCoverageFrom": [
  90. "lib/src/**/*.js",
  91. "integration/**/*.js",
  92. "!lib/src/index.js",
  93. "!lib/src/Navigation.js",
  94. "!lib/src/adapters/**/*"
  95. ],
  96. "resetMocks": true,
  97. "resetModules": true,
  98. "coverageThreshold": {
  99. "global": {
  100. "branches": 100,
  101. "functions": 100,
  102. "lines": 100,
  103. "statements": 100
  104. }
  105. }
  106. },
  107. "xo": {
  108. "extends": "xo-react",
  109. "space": true,
  110. "env": [
  111. "node",
  112. "jest",
  113. "es6"
  114. ],
  115. "globals": [
  116. "alert"
  117. ],
  118. "overrides": [
  119. {
  120. "files": "e2e/**/*",
  121. "env": [
  122. "mocha"
  123. ],
  124. "globals": [
  125. "before",
  126. "after",
  127. "beforeEach",
  128. "afterEach",
  129. "expect",
  130. "element",
  131. "by",
  132. "device"
  133. ]
  134. }
  135. ],
  136. "settings": {
  137. "import/core-modules": [
  138. "react-native-navigation"
  139. ]
  140. },
  141. "rules": {
  142. "unicorn/filename-case": 0,
  143. "unicorn/number-literal-case": 0,
  144. "import/order": 0,
  145. "import/named": 0,
  146. "import/no-unassigned-import": 0,
  147. "import/no-unresolved": [
  148. 2,
  149. {
  150. "ignore": [
  151. "react-native-navigation"
  152. ]
  153. }
  154. ],
  155. "react/jsx-tag-spacing": 0,
  156. "react/jsx-sort-props": 0,
  157. "react/jsx-boolean-value": 0,
  158. "react/prop-types": 0,
  159. "react/jsx-no-bind": 0,
  160. "react/jsx-handler-names": 0,
  161. "react/forbid-component-props": 0,
  162. "capitalized-comments": 0,
  163. "no-use-before-define": [
  164. 2,
  165. {
  166. "functions": false,
  167. "variables": false
  168. }
  169. ],
  170. "promise/param-names": 0,
  171. "no-return-assign": 0,
  172. "arrow-parens": [
  173. 2,
  174. "always"
  175. ],
  176. "object-curly-spacing": [
  177. 2,
  178. "always"
  179. ]
  180. }
  181. }
  182. }