Skip to content

Instantly share code, notes, and snippets.

@aliustaoglu
Last active February 15, 2019 22:59
Show Gist options
  • Save aliustaoglu/5090b02c4081c27ea3887d4ce0acd1e2 to your computer and use it in GitHub Desktop.
Save aliustaoglu/5090b02c4081c27ea3887d4ce0acd1e2 to your computer and use it in GitHub Desktop.
Scripts needed to run React-Native-Macos and solve problems when they happen
{
"start": "node node_modules/react-native-macos/local-cli/cli.js start",
"ios": "react-native run-ios",
"android": "react-native run-android",
"macos": "react-native-macos run-macos",
"test": "jest",
"bundle": "react-native-macos bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform macos",
"debugger-open": "rndebugger-open --port 8081",
"watchman-clear": "watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache",
"install-3rd-party": "cd node_modules/react-native-macos && scripts/macos-install-third-party.sh"
}
{
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"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",
"bundle-ios": "react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios",
"debugger-open": "rndebugger-open --port 8081",
"watchman-clear": "watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment