-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
47 lines (47 loc) · 2.25 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
{
"name": "RNTemplate",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"helper__": "",
"release-android": "cd android; ./gradlew clean; ./gradlew assembleRelease && echo 'APK is at android/app/build/outputs/apk/release/app-release.apk'; cd ..; open android/app/build/outputs/apk/release/ 2> /dev/null; # generate; print location; open location;",
"clean": "watchman watch-del-all; rm -f yarn.lock; rm -rf node_modules; yarn; cd ios; rm -rf Podfile.lock; pod deintegrate; pod repo update; pod install; cd ..; yarn start --reset-cache",
"prettier": "prettier --write",
"postinstall": "patch-package",
"bundle-ios": "react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios",
"bundle-android": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && git clean -f android > /dev/null && echo 'Removed drawable assets' # generate bundle; Remove extra assets;",
"reload-android": "adb shell am force-stop com.rntemplate && adb shell am start com.rntemplate/com.rntemplate.MainActivity",
"emulator-android": "first_avd=$(emulator -list-avds | tail -n 1) && emulator -avd $first_avd # one shot turn on android emulator, run android used to be enough before Android Studio v. Koala"
},
"dependencies": {
"@reduxjs/toolkit": "^1.9.7",
"react": "18.2.0",
"react-native": "0.72.7",
"react-redux": "^8.1.3"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/eslint-config": "^0.72.2",
"@react-native/metro-config": "^0.72.11",
"@tsconfig/react-native": "^3.0.0",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.76.8",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
"engines": {
"node": ">=16"
}
}