Last active
July 11, 2019 19:53
-
-
Save ChuckJonas/fd90469b209c2b81101e382c8b8d16fb to your computer and use it in GitHub Desktop.
salesforce vscode setup
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "retrieve", | |
"type": "shell", | |
"command": "sfdx force:mdapi:retrieve -k deploy/package.xml -r deploy/", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "deploy", | |
"type": "shell", | |
"command": " if [ \"${input:confirm}\" != \"yes\" ]; then exit 1; fi && sfdx force:mdapi:deploy --zipfile deploy/unpackaged.zip -w 10000 -u your-production-alias", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "deploy-select-test", | |
"type": "shell", | |
"command": " if [ \"${input:confirm}\" != \"yes\" ]; then exit 1; fi && sfdx force:mdapi:deploy --zipfile deploy/unpackaged.zip -w 10000 -u your-production-alias --testlevel RunSpecifiedTests -r ${input:tests}", | |
"problemMatcher": [] | |
} | |
], | |
"inputs": [ | |
{ | |
"type": "pickString", | |
"id": "confirm", | |
"description": "Are you sure you want to deploy? (enter y to continue)", | |
"options": ["yes", "no"], | |
"default": "no" | |
}, | |
{ | |
"type": "promptString", | |
"id": "tests", | |
"description": "Enter Tests to run, seperated by `,`", | |
"default": "" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment