Created
June 7, 2018 10:25
-
-
Save hungvu193/a4245e2127ecafaa6a74e964380921ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"start": "node node_modules/react-native/local-cli/cli.js start", | |
"test": "jest", | |
"clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean --force", | |
"clean:android": "cd android/ && ./gradlew clean && cd .. && react-native run-android", | |
"newclear": "rm -rf $TMPDIR/react-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules/ && npm cache clean --force && npm i", | |
"test:watch": "jest --watch", | |
"updateSnapshot": "jest --updateSnapshot", | |
"coverage": "jest --coverage && open coverage/lcov-report/index.html || xdg-open coverage/lcov-report/index.html", | |
"android:build": "cd android && ./gradlew assembleRelease", | |
"android:bundle": "react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/", | |
"android:install": "cd android && ./gradlew assembleRelease && ./gradlew installRelease", | |
"android:hockeyapp": "cd android && ./gradlew assembleRelease && puck -submit=auto app/build/outputs/apk/app-release.apk", | |
"android:devices": "$ANDROID_HOME/platform-tools/adb devices", | |
"android:logcat": "$ANDROID_HOME/platform-tools/adb logcat *:S ReactNative:V ReactNativeJS:V", | |
"android:shake": "$ANDROID_HOME/platform-tools/adb devices | grep '\\t' | awk '{print $1}' | sed 's/\\s//g' | xargs -I {} $ANDROID_HOME/platform-tools/adb -s {} shell input keyevent 82", | |
"precommit": "npm run git-hook", | |
"prepush": "npm run git-hook", | |
"git-hook": "npm run lint -s && npm run test -s", | |
"storybook": "storybook start -p 7007", | |
"lint": "standard --verbose | snazzy", | |
"lintdiff": "git diff --name-only --cached --relative | grep '\\.js$' | xargs standard | snazzy", | |
"fixcode": "standard --fix", | |
"clean-start": "watchman watch-del-all && rm -rf node_modules && npm install && rm -rf $TMPDIR/react* && npm start --reset-cache", | |
"savecode": "git commit -am \"save\" --no-verify", | |
"build-ios": "react-native run-ios --configuration=release", | |
"build-android": "react-native run-android --configuration=release", | |
"version": "react-native-version -L -A" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment