https://github.com/react-native-windows/azure-devops-extension-task-boilerplate
boilerplate code to create azure-devops-extension-task
https://github.com/react-native-windows/azure-devops-extension-task-boilerplate
azure-devops-extension azure-pipeline boilerplate-code task
Last synced: 11 months ago
JSON representation
boilerplate code to create azure-devops-extension-task
- Host: GitHub
- URL: https://github.com/react-native-windows/azure-devops-extension-task-boilerplate
- Owner: react-native-windows
- License: mit
- Created: 2019-10-05T20:47:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-08T01:51:02.000Z (over 6 years ago)
- Last Synced: 2025-01-16T07:33:41.957Z (about 1 year ago)
- Topics: azure-devops-extension, azure-pipeline, boilerplate-code, task
- Language: TypeScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Azure DevOps Extension Tasks Boilerplate
A boilerplate project help you to author azure pipeline tasks. It includes:
1. A 'Hello World' task
2. tslint and typescript support
3. compile, and package the extension
When I started a project to creating an [windows-application-driver-installer](https://github.com/react-native-windows/WinAppDriverInstaller) to install WinAppDriver to the agent, I follow [create a custom pipeline task](https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?toc=%2Fazure%2Fdevops%2Fextend%2Ftoc.json&bc=%2Fazure%2Fdevops%2Fextend%2Fbreadcrumb%2Ftoc.json&view=azure-devops). There is still some overhead to setup the project.
Finally I found a good example on [azure-devops-extension-tasks](https://github.com/Microsoft/azure-devops-extension-tasks), which allows to build and package multiple tasks to the same extension.
Based on that, I create this boilerplate
## Contribute
1. From the root of the repo run `npm run initdev`. This will pull down the necessary modules and TypeScript declare files.
2. Run `npm run build` to compile the build tasks.
3. Run `npm run package` to create a .vsix extension package that includes the build tasks.
## Extension on marketplace
[hello-world task](https://marketplace.visualstudio.com/items?itemName=licanhua.hello-world-tasks)
## How to use it
```
- task: HelloWorldExtension@0
inputs:
Message: 'Hello World'
```