You need to sign in to do that
Don't have an account?
Dave Craigmile
CTL-SHIFT-B for Non-Scratch Org in VS Code
Can someone provide a task.json example file so my build shortcut pushes just the changed files to a DE org? NOT a scratch org.
An example file would be great. Thanks!
An example file would be great. Thanks!
Below is the sample snippet for your task.json reference.
{
"version": "0.2.1",
"outDir": "\"${workspaceRoot}\\bin\"",
"tasks": [
{
"taskName": "makefile-build",
"appliesTo": "makefile",
"type": "launch",
"contextType": "build",
"command": "nmake",
"args": [ "build" ],
"envVars": {
"VSCMD_START_DIR": "\"${workspaceRoot}\""
}
},
{
"taskName": "makefile-clean",
"appliesTo": "makefile",
"type": "launch",
"contextType": "clean",
"command": "nmake",
"args": [ "clean" ],
"envVars": {
"VSCMD_START_DIR": "\"${workspaceRoot}\""
}
},
{
"taskName": "makefile-rebuild",
"appliesTo": "makefile",
"type": "launch",
"contextType": "rebuild",
"command": "nmake",
"args": [ "rebuild" ],
"envVars": {
"VSCMD_START_DIR": "\"${workspaceRoot}\""
}
}
]
}
>Open a folder with vscode and hit F1
>Select "Tasks: Configure Task Runner"
>click Enter and vscode will create a sample task.json for you
Below are few references which gives you more information on task.json in VS code.
https://code.visualstudio.com/Docs/editor/tasks
https://docs.microsoft.com/en-us/visualstudio/ide/customize-build-and-debug-tasks-in-visual-studio?view=vs-2017
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
This is something with VS configuration on from salesforce.
Try to reach out to VS support and they can help you or guide on configure in task.json.
https://support.microsoft.com/en-in/allproducts
Please mark as Best Answer if above information was helpful so that it can help others in the future.
Thanks,
Vinay Kumar