Skip to content

Instantly share code, notes, and snippets.

@ktpm489
Forked from lukeandersen/npm-scripts.js
Created May 29, 2018 15:31
Show Gist options
  • Save ktpm489/2dfe864d7e638d02645a0a6ec4d894a4 to your computer and use it in GitHub Desktop.
Save ktpm489/2dfe864d7e638d02645a0a6ec4d894a4 to your computer and use it in GitHub Desktop.
Useful React Native NPM Scripts
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"rc-start": "npm start -- --reset-cache",
"clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean",
"clean-start": "npm run clean && npm run rc-start",
"fresh-install": "rm -rf $TMPDIR/react-* && watchman watch-del-all && rm -rf ios/build/ModuleCache/* && rm -rf node_modules/ && npm cache clean && npm install",
"fresh-start" : "npm run fresh-install && npm run rc-start",
"tron": "node_modules/.bin/reactotron"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment