GithubHelp home page GithubHelp logo

krishnaadityab / vsts-extension-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/vsts-extension-samples

1.0 2.0 0.0 2.59 MB

Sample extensions for Visual Studio Team Services

Home Page: https://www.visualstudio.com/integrate/extensions/overview

License: MIT License

HTML 23.05% JavaScript 57.84% CSS 0.70% TypeScript 18.40%

vsts-extension-samples's Introduction

Visual Studio Online Extension Samples

This repo contains samples to help jump-start you in your development of Extensions for Visual Studio Online.

Getting started

Pre-requisites

  1. Join the Visual Studio Partner program to get early access to the Extensions feature
  2. Verify the Extensions feature has been enabled on your account by navigating to https://youraccount.visualstudio.com/DefaultCollection/_admin/_apps/hub/ms.vss-extmgmt-web.manageExtensions-collection.
  3. Available local or cloud web server with HTTPS (IIS, Node.js, Azure Web App, Heroku, etc)

Steps

The samples are published to the gallery. You can install them to your account by doing the following:

  1. Go to https://youraccount.visualstudio.com/DefaultCollection/_admin/_apps/hub/ms.vss-extmgmt-web.manageExtensions-collection
  2. Locate the sample extension you want to install and click "Install".

Publishing the extensions yourself

If you want to edit the samples to play around with them, you will need to publish them yourself.

Before you begin

Follow the steps under Before you begin at Publishing from the Command Line. Save your Personal Access Token for later use.

Publish
  1. Clone the samples
    git clone https://github.com/Microsoft/vso-extension-samples.git
    cd vso-extension-samples

  2. Package and publish an extension
    cd <sample>
    Note: is the directory containing the sample you want to publish.

    vset publish --publisher <P> --token <T> --share-with <A> --save
    Note: <P> is the ID of the publisher you created in the "Before you begin" steps. <T> is the Personal Access Token you generated in "Before you begin" above. <A> is the name of your VSO account.
    Note: From now on, if you need to make changes to your manifest and re-publish the extension, you just type vset publish. Your token and share options are remembered.

  3. Install by going to https://youraccount.visualstudio.com/_admin/_apps/hub/ms.vss-extensionManagement-web.manageExtensions. Find the extension you published under the Shared With Me category. Click "Install" to install the extension.

What's available

Branch delete

image

Clean up old or unneeded Git branches right from within Visual Studio Online.

Contribution guide

image

Discover all the places in Visual Studio Online you can extend, including hubs, toolbars, and context menus, and more.

Build inspector

Demonstrates advanced extension concepts like AMD loading, using UI controls, history, and more. This sample is written in TypeScript. The compiled JS files are included in the /out directory, but changes will need to be re-compiled. Open readme.txt for instructions.

UI

image

Explore different UI controls, including menus, toolbars, custom controls, and more.

Public events (for Team Calendar)

Adds an event source to the Team Calendar extension for public holidays. Note that this sample contributes to another extension rather than core Visual Studio Online.

This sample is written in TypeScript. The compiled JS files are included in the /out directory, but changes will need to be re-compiled. Open readme.txt for instructions.

Build Results Enhancer

This sample extension shows how to make a tab/section contribution to build summary page, reacting to build updates.

This also has a sample code that allows user to render custom data results uploaded from a particular task in build.

You could contribute to build results view in different ways:

  • As a section to any of your own contributed tab for build results view
  • As a section to the existing "summary" tab in build results view
  • As a tab to the build results view

Contributing as a tab and a section to our own tab -

image

Contributing as a section to "summary" tab -

image

This sample is written in TypeScript. The compiled JS files are included in the /out directory, but changes will need to be re-compiled. Open readme.txt for instructions.

vsts-extension-samples's People

Contributors

dmarcey avatar hammyhavoc avatar krishnaadityab avatar martinwoodward avatar nkirchem avatar obvioussean avatar ramya-rao-a avatar serkan-inci avatar slumley avatar t-hugs avatar tedchamb avatar willsmythe avatar willsmythe-free avatar yaananth avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.