Skip to content

Instantly share code, notes, and snippets.

@yycking
Last active June 19, 2018 10:42
Show Gist options
  • Save yycking/d66fa3645b20c8eef60c9cc5f3eca31a to your computer and use it in GitHub Desktop.
Save yycking/d66fa3645b20c8eef60c9cc5f3eca31a to your computer and use it in GitHub Desktop.
[Option+Shift+K] for react native on Sublime Text
[
{
"caption": " 📱",
"command": "shell_command",
"args": {
"command": "open -a '/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app'",
}
},
{
"caption": " 🏭📱",
"command": "shell_command",
"args": {
"command": "react-native run-ios",
"root_dir": true,
"panel": true,
}
},
{
"caption": " 🚚📱",
"command": "shell_command",
"args": {
"command": "xcrun simctl install booted ./ios/build/Build/Products/Debug-iphonesimulator/cybertool.app",
"root_dir": true,
}
},
{
"caption": " 🔱📱",
"command": "shell_command",
"args": {
"command": "react-native run-ios --device iPhone",
"root_dir": true,
"panel": true,
}
},
{
"caption": " 🤖",
"command": "shell_command",
"args": {
"command": "open -a '/Applications/Genymotion.app/Contents/MacOS/player.app' --args --vm-name 'Google Pixel 2 - 8.0 - API 26 - 1080x1920'",
}
},
{
"caption": " 🏭🤖",
"command": "shell_command",
"args": {
"command": "export ANDROID_HOME=~/Library/Android/sdk/;export PATH=$PATH:~/android-sdks/platform-tools/;export PATH=$PATH:~/android-sdks/tools/;export 'JAVA_HOME=/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home';react-native run-android",
"root_dir": true,
"panel": true,
}
},
{
"caption": " 🚚🤖",
"command": "shell_command",
"args": {
"command": "~/Library/Android/sdk/platform-tools/adb install ./android/app/build/outputs/apk/app-debug-unaligned.apk",
"root_dir": true,
"panel": true,
}
},
{
"caption": " 🤖 8083",
"command": "shell_command",
"args": {
"command": "~/Library/Android/sdk/platform-tools/adb forward tcp:8083 tcp:8083",
}
},
{
"caption": " 🤖 8082",
"command": "shell_command",
"args": {
"command": "~/Library/Android/sdk/platform-tools/adb forward tcp:8082 tcp:8082",
}
},
{
"caption": " 🤖 8081",
"command": "shell_command",
"args": {
"command": "~/Library/Android/sdk/platform-tools/adb reverse tcp:8081 tcp:8081",
}
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment