-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (118 loc) · 4.48 KB
/
package.json
File metadata and controls
118 lines (118 loc) · 4.48 KB
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
{
"name": "boilerplate",
"version": "0.0.1",
"private": true,
"scripts": {
"clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean --force",
"newclear": "rm -rf rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf android/build && rm -rf android/app/build && rm -rf node_modules/ && npm cache clean --force && yarn install",
"test": "node node_modules/jest/bin/jest.js",
"test:watch": "jest --watch",
"updateSnapshot": "jest --updateSnapshot",
"coverage": "jest --coverage && open coverage/lcov-report/index.html || xdg-open coverage/lcov-report/index.html",
"android:clean": "cd android/ && ./gradlew clean && rm -rf build && rm -rf app/build && cd ..",
"android:bundle": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle",
"android:build": "yarn android:bundle && cd android && ENVFILE=.env.production ./gradlew assembleRelease",
"android:build:stag": "yarn android:bundle && cd android && ENVFILE=.env.staging ./gradlew assembleRelease",
"android:devices": "$ANDROID_HOME/platform-tools/adb devices",
"android:logcat": "$ANDROID_HOME/platform-tools/adb logcat *:S ReactNative:V ReactNativeJS:V",
"android:shake": "$ANDROID_HOME/platform-tools/adb devices | grep '\\t' | awk '{print $1}' | sed 's/\\s//g' | xargs -I {} $ANDROID_HOME/platform-tools/adb -s {} shell input keyevent 82",
"start": "react-native start",
"start:clean": " yarn start --reset-cache",
"ios": "ENVFILE=.env.staging react-native run-ios ",
"ios:prod": "ENVFILE=.env.production react-native run-ios ",
"android": "ENVFILE=.env.staging react-native run-android",
"android:prod": "ENVFILE=.env.production react-native run-android",
"android:release": "yarn android:bundle && ENVFILE=.env.staging react-native run-android --variant=release",
"android:release:prod": "yarn android:bundle && ENVFILE=.env.production react-native run-android --variant=release",
"preversion": "lint-staged && yarn test",
"version": "support/version-ios.sh",
"pretty": "prettier --no-semi false --print-width 100 --single-quote --trailing-comma none --write \"src/**/*.js\"",
"rename": "node ./support/rename.js"
},
"dependencies": {
"apisauce": "^0.14.3",
"react": "^16.5.2",
"react-native": "^0.57.1",
"react-native-config": "^0.11.5",
"react-native-splash-screen": "^3.0.6",
"react-navigation": "^2.18.1",
"react-navigation-redux-helpers": "^2.0.8",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"redux-persist": "^5.9.1",
"redux-thunk": "^2.2.0",
"reselect": "^3.0.1"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/runtime": "^7.1.2",
"babel-core": "^7.0.0-beta.47",
"babel-eslint": "^8.2.2",
"babel-jest": "^23.6.0",
"babel-plugin-jest-hoist": "^23.2.0",
"babel-plugin-module-resolver": "^3.1.1",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-flowtype": "^2.46.1",
"eslint-plugin-import": "^2.10.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"husky": "^1.1.0",
"jest": "23.6.0",
"lint-staged": "^7.0.4",
"metro-react-native-babel-preset": "^0.47.0",
"prettier": "^1.11.1",
"react-dom": "^16.5.2",
"react-test-renderer": "^16.5.2",
"schedule": "0.4.0",
"replace-in-file": "^3.4.0",
"fs-extra": "^6.0.1"
},
"jest": {
"preset": "react-native",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
},
"testMatch": [
"**/?(*.)test.js?(x)"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"setupFiles": [
"<rootDir>/jest/setup.js"
]
},
"lint-staged": {
"*.js": [
"yarn pretty",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn test",
"pre-push": "lint-staged && yarn test"
}
},
"rnpm": {
"assets": [
"./src/assets/fonts/"
]
},
"babel": {
"presets": [
"module:metro-react-native-babel-preset"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"jest-hoist"
]
}
}