Skip to content

Instantly share code, notes, and snippets.

@rutvikbhatt9
Last active February 21, 2019 05:49
Show Gist options
  • Save rutvikbhatt9/8e8502f822825c67df0defc8ba6f1a7c to your computer and use it in GitHub Desktop.
Save rutvikbhatt9/8e8502f822825c67df0defc8ba6f1a7c to your computer and use it in GitHub Desktop.
Setting scripts in package.json file
{
"name": "AppName",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"clear-watch": "watchman watch-del-all && watchman shutdown-server",
"ios-bundle": "react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios",
"ios-build": "react-native run-ios --configuration Release",
"android-clean": "cd android && ./gradlew clean",
"android-build-debug": "cd android/ && ./gradlew assembleDebug",
"android-release": "cd android && ./gradlew assembleRelease --no-daemon",
"android-bundle": "react-native bundle --platform android --dev false --entry-file ./index.js --bundle-output ./android/app/src/main/assets/index.bundle --sourcemap-output ./android/app/src/main/assets/index.map --assets-dest ./android/app/src/main/res/"
},
"dependencies": {
"react": "16.6.3",
"react-native": "0.58.4"
},
"devDependencies": {
...
},
"jest": {
"preset": "react-native"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment