Browse Source

update packages

Daniel Zlotin 8 years ago
parent
commit
6cccbd59c4
4 changed files with 425 additions and 289 deletions
  1. 2
    8
      .eslintrc
  2. 1
    1
      android/app/build.gradle
  3. 27
    19
      package.json
  4. 395
    261
      yarn.lock

+ 2
- 8
.eslintrc View File

@@ -404,14 +404,8 @@
404 404
     ],
405 405
     "react/no-danger": "error",
406 406
     "react/no-deprecated": "error",
407
-    "react/no-did-mount-set-state": [
408
-      "error",
409
-      "allow-in-func"
410
-    ],
411
-    "react/no-did-update-set-state": [
412
-      "error",
413
-      "allow-in-func"
414
-    ],
407
+    "react/no-did-mount-set-state": "error",
408
+    "react/no-did-update-set-state": "error",
415 409
     "react/no-direct-mutation-state": "error",
416 410
     "react/no-is-mounted": "error",
417 411
     "react/no-multi-comp": "error",

+ 1
- 1
android/app/build.gradle View File

@@ -47,7 +47,7 @@ android {
47 47
 dependencies {
48 48
     compile fileTree(dir: "libs", include: ["*.jar"])
49 49
 
50
-	compile 'com.android.support:support-v4:25.0.1'
50
+	  compile 'com.android.support:support-v4:25.0.1'
51 51
     compile "com.android.support:appcompat-v7:25.0.1"
52 52
 
53 53
     // node_modules

+ 27
- 19
package.json View File

@@ -21,37 +21,45 @@
21 21
   "scripts": {
22 22
     "build": ":",
23 23
     "lint": "eslint src test",
24
-    "test:js": "jest",
24
+    "test:js": "jest --coverage",
25 25
     "test:android": "cd android && ./gradlew clean testDebugUnitTest",
26 26
     "test:ios": ":",
27 27
     "pretest": "npm run lint",
28 28
     "test": "npm run test:js && npm run test:android && npm run test:ios",
29
+    "test:watch": "jest --coverage --watch",
29 30
     "release": "npm version prerelease && npm publish --tag next && npm view react-native-navigation dist-tags && git push"
30 31
   },
32
+  "optionalDependencies": {
33
+    "react-redux": "*"
34
+  },
31 35
   "peerDependencies": {
32 36
     "react-native": "*",
33 37
     "react": "*"
34 38
   },
35 39
   "dependencies": {
36
-    "lodash": "^4.16.0"
37
-  },
38
-  "optionalDependencies": {
39
-    "react-redux": "*"
40
+    "lodash": "4.x.x"
40 41
   },
41 42
   "devDependencies": {
42
-    "react-native": "0.37.0",
43
-    "react": "15.3.2",
44
-    "babel-cli": "^6.8.0",
45
-    "babel-core": "^6.8.0",
46
-    "babel-polyfill": "^6.8.0",
47
-    "babel-preset-react-native": "^1.0.0",
48
-    "babel-register": "^6.8.0",
49
-    "eslint": "^2.5.1",
50
-    "eslint-plugin-babel": "^3.0.0",
51
-    "eslint-plugin-react": "^4.2.3",
52
-    "eslint-plugin-react-native": "^1.0.0",
53
-    "babel-eslint": "^6.0.4",
54
-    "jest": "^17.0.0",
55
-    "jest-cli": "^17.0.0"
43
+    "react-native": "0.38.0",
44
+    "react": "15.4.1",
45
+    "babel-cli": "6.x.x",
46
+    "babel-core": "6.x.x",
47
+    "babel-polyfill": "6.x.x",
48
+    "babel-preset-react-native": "1.x.x",
49
+    "babel-register": "6.x.x",
50
+    "babel-jest": "17.x.x",
51
+    "eslint": "3.x.x",
52
+    "eslint-plugin-babel": "3.x.x",
53
+    "eslint-plugin-react": "6.x.x",
54
+    "eslint-plugin-react-native": "2.x.x",
55
+    "jest": "17.x.x",
56
+    "jest-cli": "17.x.x",
57
+    "jest-react-native": "17.x.x",
58
+    "react-test-renderer": "15.4.1"
59
+  },
60
+  "jest": {
61
+    "preset": "jest-react-native",
62
+    "resetMocks": true,
63
+    "resetModules": true
56 64
   }
57 65
 }

+ 395
- 261
yarn.lock
File diff suppressed because it is too large
View File