- Clone the Proyect
- Use command
cd buildAndReleaseTask - Install dependencies
yarn - Use
yarn buildto compile any changes on the index.ts file. This file contains the boostrap for script execution. Its the entry point to execute the logic or scripts you want. - Set as local variables the list on task.json, example
export samplestring=pluginTemplate - Once compiled and generated the index.js file, we can run
yarn start:local
- Move to the root directory of the project, where the vss-extension.json file is.
- Use the command
tfx extension create --manifest-globs vss-extension.json - This wil create and vsix file on the root of the project. That file is the Task (plugin) compiled and ready to be published.
In order to publish your Task(plugin) whe need an accound as Publisher. More info here: https://learn.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops#5-publish-your-extension