Skip to content

Instantly share code, notes, and snippets.

@xuan9
Created June 21, 2018 12:56
Show Gist options
  • Select an option

  • Save xuan9/8404b96f0eb35fec537f5dfdac4f433c to your computer and use it in GitHub Desktop.

Select an option

Save xuan9/8404b96f0eb35fec537f5dfdac4f433c to your computer and use it in GitHub Desktop.
react native project package.json
{
"name": "myapp",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"backend": "sudo php -S 0.0.0.0:8000 -t ../myapp-web/src/public/",
"iphone": "react-native run-ios --configuration Release --device",
"clean-bundle:ios": "rm -f ./ios/main.jsbundle*",
"bundle:ios": "npm run clean-bundle:ios; node node_modules/react-native/local-cli/cli.js bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ./ios/main.jsbundle --assets-dest ./ios",
"clean:ios": "cd ios; xcodebuild clean -project myapp.xcodeproj -configuration Release -alltargets",
"build:ios": ". ./tools/getiOSDistName.sh; npm clean:ios; cd ios; xcodebuild archive -scheme myapp -project myapp.xcodeproj -configuration Release -archivePath ../releases/$distName; xcodebuild -exportArchive -archivePath ../releases/$distName.xcarchive -exportPath ../releases/$distName.ipa -exportOptionsPlist ../tools/iosExportOptions.plist",
"upload:ios": ". ./tools/getiOSDistName.sh; ./tools/itunes_upload.sh releases/$distName.ipa/myapp.ipa",
"clean-bundle:android": "rm -f ./android/app/src/main/assets/index.android.bundle*",
"bundle:android": "npm run clean-bundle:android; node node_modules/react-native/local-cli/cli.js bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/",
"assemble:android": "cd android; ./gradlew assembleRelease --stacktrace; ls -la `pwd`/app/build/outputs/apk/release/*.apk;mv app/build/outputs/apk/release/*.apk ../releases/",
"clean:android": "cd android; ./gradlew clean;",
"release:android": "npm run bundle:android; npm run clean:android; npm run assemble:android;",
"codepush:ios": ". ./tools/getiOSDistName.sh; code-push release-react MYCOMPANY/MYAPP ios -d Production -m false --des $version -s releases/index.ios.bundle-$version.map",
"codepush:android": ". ./tools/getiOSDistName.sh; code-push release-react MYCOMPANY/MYAPP-Android android -d Production -m false --des $version -s releases/index.android.bundle-$version.map",
"codepush:history": "echo 'iOS'; code-push deployment history MYCOMPANY/MYAPP Production; echo 'Android'; code-push deployment history MYCOMPANY/MYAPP-Android Production",
"codepush:clear-ios": " code-push deployment clear MYCOMPANY/MYAPP Production",
"codepush:clear-android": " code-push deployment clear MYCOMPANY/MYAPP Production",
"codepush:apps": " code-push app list",
"codepush:keys": "echo 'iOS';code-push deployment ls MYCOMPANY/MYAPP -k;echo 'Android'; code-push deployment ls MYCOMPANY/MYAPP-Android -k"
},
"dependencies": {
"mobx": "^3.6.2",
"mobx-logger": "^0.6.0",
"mobx-persist": "^0.3.4",
"mobx-react": "^4.4.3",
"native-base": "^2.4.4",
"react": "^16.3.2",
"react-native": "^0.52.3",
"react-native-autolink": "^1.4.0",
"react-native-device-info": "^0.13.0",
"react-native-keychain": "^2.0.0",
"react-native-linear-gradient": "^2.4.0",
"react-native-simple-toast": "^0.0.7",
"react-native-splash-screen": "^3.0.6",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^1.5.12",
"react-timeago": "^3.4.3"
},
"devDependencies": {
"babel-jest": "^19.0.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-react-native": "^2.1.0",
"jest": "^19.0.2",
"react-test-renderer": "^16.3.1"
},
"jest": {
"preset": "react-native"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment