Skip to content

Instantly share code, notes, and snippets.

@bharat-tiwari
Last active November 18, 2019 18:01
Show Gist options
  • Save bharat-tiwari/10d019d69af76bc826f134e92f957691 to your computer and use it in GitHub Desktop.
Save bharat-tiwari/10d019d69af76bc826f134e92f957691 to your computer and use it in GitHub Desktop.
added new scripts to package.json for additional commands
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "tslint src/**/*.ts",
"tslint": "./node_modules/.bin/tslint --format stylish --config ./tslint.json 'src/{,**/}*.tsx'",
"tsc": "tsc",
"clean": "rimraf build",
"build": "yarn run clean && yarn run tsc --",
"watch": "yarn run build -- -w",
"watchAndRunAndroid": "concurrently \"yarn run watch\" \"yarn run android\"",
"buildRunAndroid": "yarn run build && yarn run watchAndRunAndroid ",
"watchAndRunIOS": "concurrently \"yarn run watch\" \"yarn run ios\"",
"buildRunIOS": "yarn run build && yarn run watchAndRunIOS ",
"watchAndStart": "concurrently \"yarn run watch\" \"yarn run start\"",
"buildAndStart": "yarn run build && yarn run watchAndStart "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment