react-native-navigation的迁移库

package.json 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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": "5.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. "xo": {
  102. "extends": "xo-react",
  103. "space": true,
  104. "env": [
  105. "node",
  106. "jest",
  107. "es6"
  108. ],
  109. "globals": [
  110. "alert"
  111. ],
  112. "overrides": [
  113. {
  114. "files": "e2e/**/*",
  115. "env": [
  116. "mocha"
  117. ],
  118. "globals": [
  119. "before",
  120. "after",
  121. "beforeEach",
  122. "afterEach",
  123. "expect",
  124. "element",
  125. "by",
  126. "device"
  127. ]
  128. }
  129. ],
  130. "settings": {
  131. "import/core-modules": [
  132. "react-native-navigation"
  133. ]
  134. },
  135. "rules": {
  136. "unicorn/filename-case": 0,
  137. "unicorn/number-literal-case": 0,
  138. "import/order": 0,
  139. "import/named": 0,
  140. "import/no-unassigned-import": 0,
  141. "import/no-unresolved": [
  142. 2,
  143. {
  144. "ignore": [
  145. "react-native-navigation"
  146. ]
  147. }
  148. ],
  149. "react/jsx-tag-spacing": 0,
  150. "react/jsx-curly-brace-presence": 0,
  151. "react/jsx-sort-props": 0,
  152. "react/jsx-boolean-value": 0,
  153. "react/prop-types": 0,
  154. "react/jsx-no-bind": 0,
  155. "react/jsx-handler-names": 0,
  156. "react/forbid-component-props": 0,
  157. "capitalized-comments": 0,
  158. "no-use-before-define": [
  159. 2,
  160. {
  161. "functions": false,
  162. "variables": false
  163. }
  164. ],
  165. "promise/param-names": 0,
  166. "no-return-assign": 0,
  167. "arrow-parens": [
  168. 2,
  169. "always"
  170. ],
  171. "object-curly-spacing": [
  172. 2,
  173. "always"
  174. ]
  175. }
  176. }
  177. }