Skip to content

Instantly share code, notes, and snippets.

@alpipego
Created October 29, 2015 07:58
Show Gist options
  • Save alpipego/844e7454fc9537cbadd9 to your computer and use it in GitHub Desktop.
Save alpipego/844e7454fc9537cbadd9 to your computer and use it in GitHub Desktop.
{
"folders":
[
{
"path": "."
}
],
"build_systems":
[
{
"name": "Android",
"cmd": ["tns run android"],
"shell": true
},
{
"name": "iPhone 4s (emulator)",
"cmd": ["tns run ios --emulator --device iPhone-4s"],
"shell": true
},
{
"name": "iPhone 5 (emulator)",
"cmd": ["tns run ios --emulator --device iPhone-5"],
"shell": true
},
{
"name": "iPhone 6 (emulator)",
"cmd": ["tns run ios --emulator --device iPhone-6"],
"shell": true
},
{
"name": "iPhone 6 Plus (emulator)",
"cmd": ["tns run ios --emulator --device iPhone-6-Plus"],
"shell": true
},
{
"name": "iPhone 6s (emulator)",
"cmd": ["tns run ios --emulator --device iPhone-6s"],
"shell": true
},
{
"name": "iPhone 6s Plus (emulator)",
"cmd": ["tns run ios --emulator --device iPhone-6s-Plus"],
"shell": true
},
{
"name": "iPad 2 (emulator)",
"cmd": ["tns run ios --emulator --device iPad-2"],
"shell": true
},
{
"name": "iPad Retina (emulator)",
"cmd": ["tns run ios --emulator --device iPad-Retina"],
"shell": true
},
{
"name": "iPad Air (emulator)",
"cmd": ["tns run ios --emulator --device iPad-Air"],
"shell": true
},
{
"name": "iPad Air 2 (emulator)",
"cmd": ["tns run ios --emulator --device iPad-Air-2"],
"shell": true
},
{
"name": "iPad Pro (emulator)",
"cmd": ["tns run ios --emulator --device iPad-Pro"],
"shell": true
}
]
}
@alpipego
Copy link
Author

If running into trouble with a ANDROID_HOME not defined simply add the variable in the script as well:

"cmd": ["export ANDROID_HOME=/usr/local/Cellar/android-sdk/24.4.1 && tns run android"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment