-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
47 lines (42 loc) · 1.82 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
{
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"buildios": "npm run rebuild ios ipa;",
"buildandroid": "npm run rebuild android apk;",
"rebuild": "run(){ rm lunchpool_mobile_onboarding-*.$2; expo build:$1 && npm run downloadbinary$1; }; run",
"downloadbinaryios": "npm run binary ipa",
"downloadbinaryandroid": "npm run binary apk",
"binary": "run(){ rm lunchpool_mobile_onboarding-*.$1; curl -O $(npm run -s url $1); }; run",
"//": "the url function may need to change based on project name",
"url": "run(){ expo build:status | grep $1 | cut -c 6- | head -1; }; run",
"eject": "expo eject",
"test": "node ./node_modules/jest/bin/jest.js --watchAll",
"//": "android bridge device section; requires abd",
"device": "adb devices | HEAD -2 | TAIL -1 | awk '{print $1;}'",
"usbAndroid": "adb -s $(npm run -s device) install *.apk || echo 'no device found, check usb debugging, or apk file exists';",
"usbIphone": "",
"//": "included for documentation purposes",
"mainCommands": "exit 1 && npm run buildios; npm run buildandroid; npm run usbAndroid;",
"commandsWithExampleInputs": "exit 1 && npm run rebuild ios ipa; npm run rebuild android apk; npm run binary ipa; npm run binary apk; npm run -s url apk; npm run -s url ipa; npm run device;"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/samples": "2.1.1",
"expo": "^31.0.2",
"native-base": "^2.8.1",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-maps": "^0.22.1",
"react-navigation": "^2.18.2"
},
"devDependencies": {
"babel-preset-expo": "^5.0.0",
"jest-expo": "^31.0.0"
}
}