- Navigate to
cd tasks\terraform-cli
. - Run
npm run test
.
We have a devcontainer setup so you can run your development environment in Docker or in Github Codespaces. If locally, you will be asked to restart in remote container. To do this you'll need a local docker. Otherwise you can just run the codespace directly from Github.
In either case, you should have everything required to build and test the project.
- Downgrade to node V6.
- Ensure you have Python installed and in the path (e.g.
winget install python
). - Ensure you have C++ tools installed. See here https://github.com/nodejs/node-gyp#on-windows.
- Navigate to the root folder.
- If you haven't already, setup a https://marketplace.visualstudio.com/manage account and publisher following these steps.
- Create a file called
self.json
inside the root folder. The file contents should look like the following, but replace thepublisher
field with the publisher you setup earlier.
{
"name": "Terraform CLI (Dev - Individual)",
"public": false,
"publisher": "<replace-me-with-your-publisher>"
}
- 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.