If you want to get started developing this task, then there are a few setup steps to follow.
- Clone the repo.
- Navigate to the V4 task with
cd Tasks/TerraformTask/TerraformTaskV4
. - Run
npm install -include=dev
.
- Navigate to the V4 task with
cd Tasks/TerraformTask/TerraformTaskV4
. - Run
npm test
.
- Navigate to the root folder of the repo.
- If you haven't already, setup a https://marketplace.visualstudio.com/manage account and publisher following these steps.
- Run
npm install -include=dev
. - Create a file called
self.json
inside theconfigs folder
. The file contents should look like the following, but replace thepublisher
field with the publisher you setup earlier.
{
"id": "custom-terraform-tasks",
"name": "Terraform (Dev - Individual)",
"public": false,
"publisher": "<replace-me-with-your-publisher>",
"version": "0.1.0"
}
- Replace the
version
with the version prior to the one you are want to publish. - Run
npm run build:release
. - Run
npm run package:self
. - This will generate a
.vsix
file prefixed with your published name. - Navigate to your publisher portal: https://marketplace.visualstudio.com/manage/publishers
- Choose your publisher and select
New extension
and chooseAzure DevOps
. - You'll be prompted to drag and drop your
.vsix
file, do that and wait for it to be verified. Ensure you choose that your extension will be Private. - Click on the three dots
...
next to the extension name and chooseShare/Unshare
. - Click
+ Organization
and enter the name of your Azure DevOps org. - Now navigate to your Azure DevOps org and install the extension as you would any other.
- You are now ready to use the extension and test it.