DrMueller / Angular-AzureDevOps-Poc

5 stars 2 forks source link

Azure DevOps Extensions with Angular

Overview

This repository combines Azure DevOps (Former TFS / VSTS) extensions with an Angular app. The example contains two Azure DevOps extensions:

Points of interest

Instead of using the index.html, we use the Azure DevOps extension HTML files and load the Angular artifacts manually. The exemplary hub, dashboard and the init javascript are located in the vss-folder.

Build and deployment

The actual deployment is done via Azure DevOps pipeline. To deploy manually, proceed with the following steps:

  1. Assure you have a registered publisher on the portal. Link: https://marketplace.visualstudio.com/manage/publishers

  2. In the vss-extension.json:

    • Replace the publisher "DrMueller2" with yours. ATTENTION: The publisher id is also part of the the hub icons, assure to replace these paths too!
    • Replace BuildVersion with an actual version, for example "0.0.1"
  3. Build the Angular app

    npm run ci-build-prod
  4. Build the VSIX package

    npm run build-package
  5. Upload the generated VSIX packag manually with in the publisher portal

  6. Share it with your company

  7. Install the extension via https://xxx.visualstudio.com/_settings/extensions?tab=shared

  8. Profit!

Links

General

Manifest

Samples