-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
154 lines (154 loc) · 4.75 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"name": "sobtracker",
"engines": {
"node": "10.0.0"
},
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"build-android-release": "cd android && ./gradlew clean && ./gradlew assembleRelease",
"clean-android-run": "cd android && ./gradlew clean && cd .. && react-native run-android",
"fabric-beta-android-release": "cd android && ./gradlew clean && ./gradlew assembleRelease crashlyticsUploadDistributionRelease",
"test": "jest",
"coverage": "jest --no-cache --coverage",
"detox:ios": "concurrently --kill-others \"npm run storybook\" \"npm run detox-tests:ios\" ",
"detox:android": "concurrently --kill-others \"npm run storybook\" \"npm run detox-tests:android\" ",
"detox-tests:ios": "detox build --configuration ios.sim.debug && detox test --configuration ios.sim.debug",
"detox-tests:android": "detox build --configuration android.emu.debug && detox test --configuration android.emu.debug",
"storybook": "storybook start -p 7007",
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"precommit:tests": "jest --no-cache --coverage",
"precommit:msg": "echo 'Pre-commit checks...' && exit 0",
"precommit:prettier": "lint-staged",
"prettier": "prettier --write \"{src,{__tests__}}/**/*.js\""
},
"dependencies": {
"react": "16.5.0",
"react-native": "0.57.2",
"react-native-device-log": "^1.0.2",
"react-native-keyboard-aware-scroll-view": "^0.7.2",
"react-native-localization": "^2.0.1",
"react-native-picker": "^4.3.7",
"react-native-segmented-control-tab": "^3.3.1",
"react-native-tag-input": "0.0.21",
"react-native-vector-icons": "^5.0.0",
"react-navigation": "^2.17.0",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
"redux-devtools-extension": "^2.13.5",
"redux-persist": "^5.10.0",
"seamless-immutable": "^7.1.4",
"uuid": "^3.3.2"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/runtime": "^7.1.2",
"@storybook/addon-actions": "^3.4.11",
"@storybook/addon-links": "^3.4.11",
"@storybook/addons": "^3.4.11",
"@storybook/react-native": "^3.4.11",
"@types/redux-mock-store": "^1.0.0",
"babel-jest": "23.6.0",
"concurrently": "^4.0.1",
"detox": "^9.0.4",
"husky": "^1.1.0",
"jest": "^23.6.0",
"lint-staged": "^7.3.0",
"metro-react-native-babel-preset": "0.47.1",
"mocha": "^5.2.0",
"pre-commit": "^1.2.2",
"prettier": "^1.14.3",
"react-test-renderer": "16.5.0",
"redux-mock-store": "^1.5.3"
},
"lint-staged": {
"*.js": [
"npm run prettier",
"git add"
]
},
"pre-commit": [
"precommit:msg",
"precommit:prettier",
"precommit:tests"
],
"detox": {
"configurations": {
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/sobtracker.app",
"build": "xcodebuild -project ios/sobtracker.xcodeproj -scheme sobtracker -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"name": "iPhone X"
},
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd",
"type": "android.emulator",
"name": "Nexus_5X_API_28_x86"
}
}
},
"jest": {
"verbose": true,
"preset": "react-native",
"coveragePathIgnorePatterns": [
"/e2e",
"./__tests__/testSetup.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/output/",
"/sentry_build/",
"/e2e",
"./__tests__/testSetup.js"
],
"transformIgnorePatterns": [
"node_modules/(?!react-native|react-native-confidence|react-clone-referenced-element)"
],
"setupFiles": [
"./__tests__/testSetup.js"
],
"collectCoverage": false,
"collectCoverageFrom": [
"!**/coverage/**",
"!**/language/**",
"!**/node_modules/**",
"!**/output/**",
"!**/sentry_build/**",
"!**/storybook/**",
"!**/theme/**",
"!flow-typed/**",
"!testSetup.js",
"**/*.{js,jsx}"
],
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"coverageDirectory": "output/coverage",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
}
},
"prettier": {
"useTabs": false,
"trailingComma": "es5",
"parser": "flow",
"semi": true,
"jsxBracketSameLine": false,
"singleQuote": true,
"overrides": [
{
"files": "package.json",
"options": {
"printWidth": 1024
}
}
]
}
}