react-native-navigation的迁移库

package.json 4.1KB

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