Created
June 13, 2019 13:08
-
-
Save diegogurpegui/0a3c3100c8e56c40db26161243571973 to your computer and use it in GitHub Desktop.
VS Code tasks for React Native dev
This file contains 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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "android-emulator", | |
"type": "shell", | |
// <USERNAME> is your Windows username. Otherwise you shold enter the full path for the emulator binary | |
// <AVD> is the Android AVD name you want to use. For example: 'Nexus_5X_API_24_x86' | |
"command": "C:\\Users\\<USERNAME>\\AppData\\Local\\Android\\sdk\\emulator\\emulator.exe -avd <AVD>", | |
"presentation": { | |
"reveal": "always", | |
"panel": "new" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "react-native run android debug", | |
"type": "shell", | |
// The --appIdSuffix makes sense if you build your android app with a suffix on debug mode. | |
// It is useful to avoid conflics with production app installed on the device | |
"command": "react-native run-android --appIdSuffix \"debug\"", | |
"presentation": { | |
"reveal": "always", | |
"panel": "new" | |
}, | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "android-build APK", | |
"type": "shell", | |
"options": { | |
"cwd": "${workspaceRoot}/android" | |
}, | |
"command": "./gradlew assembleRelease", | |
"presentation": { | |
"reveal": "always", | |
"panel": "new" | |
}, | |
"problemMatcher": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment