|
@@ -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
|
}
|