A boilerplate project help you to author azure pipeline tasks. It includes:
- A 'Hello World' task
- tslint and typescript support
- compile, and package the extension
When I started a project to creating an windows-application-driver-installer to install WinAppDriver to the agent, I follow create a custom pipeline task. There is still some overhead to setup the project. Finally I found a good example on azure-devops-extension-tasks, which allows to build and package multiple tasks to the same extension. Based on that, I create this boilerplate
- From the root of the repo run
npm run initdev
. This will pull down the necessary modules and TypeScript declare files. - Run
npm run build
to compile the build tasks. - Run
npm run package
to create a .vsix extension package that includes the build tasks.
- task: HelloWorldExtension@0
inputs:
Message: 'Hello World'