Skip to content

Instantly share code, notes, and snippets.

@ktpm489
Forked from itinance/package.json
Created May 29, 2018 15:39
Show Gist options
  • Save ktpm489/20ab7239f9a2199d87b68a971af68f89 to your computer and use it in GitHub Desktop.
Save ktpm489/20ab7239f9a2199d87b68a971af68f89 to your computer and use it in GitHub Desktop.
React Native: package.json: usefully tools for React Native that can be used with "npm run $name"
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --reset-cache",
"reset": "rm -rf node_modules/ && npm cache clear && watchman watch-del-all && npm i",
"testflight": "fastlane beta",
"android-device": "adb reverse tcp:8081 tcp:8081 && react-native run-android",
"lint": "jslint **.js",
"test": "jest",
"generate-apk": "cd android && ./gradlew assembleRelease && open ./app/build/outputs/apk/",
"install-apk": "cd android && ./gradlew installRelease"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment