react-native-navigation的迁移库

package.json 5.7KB

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