Sample extensions for Visual Studio Team Services
Перейти к файлу
Trevor Gau 329f991e5d Merge pull request #53 from yaananth/patch-1
add help link
2017-03-15 13:03:56 -04:00
backlogs-panel Update vss-web-extension-sdk to 2.109.0 - this is the same as 1.109.0, but 1.110.0 has reverted to the previous 108 version to avoid breaking those still on TypeScript <2.0. 2016-12-16 13:25:22 -05:00
build-inspector Update vss-web-extension-sdk to 2.109.0 - this is the same as 1.109.0, but 1.110.0 has reverted to the previous 108 version to avoid breaking those still on TypeScript <2.0. 2016-12-16 13:25:22 -05:00
build-results-enhancer add help link 2017-03-15 13:00:30 -04:00
calendar-public-events Update vss-web-extension-sdk to 2.109.0 - this is the same as 1.109.0, but 1.110.0 has reverted to the previous 108 version to avoid breaking those still on TypeScript <2.0. 2016-12-16 13:25:22 -05:00
charts Add demands for CHart Service 2016-10-12 15:44:00 -07:00
contributions-guide Updated contribution guide to use proper build/release hub group ID 2017-01-31 23:02:05 -05:00
dashboard-manager Update package.json files to use latest tfx-cli version. 2016-12-09 12:51:46 -05:00
data-storage Update vss-web-extension-sdk to 2.109.0 - this is the same as 1.109.0, but 1.110.0 has reverted to the previous 108 version to avoid breaking those still on TypeScript <2.0. 2016-12-16 13:25:22 -05:00
release-management/deployment-status-enhancer Reacted to Pull request comments by Will 2016-04-19 18:27:33 +05:30
service-hooks-consumer update consumer service sample readme 2016-10-07 09:52:56 -04:00
ui Update UI sample 2016-02-25 01:08:28 -05:00
ui-fabric-react Merge branch 'master' of github.com:Microsoft/vsts-extension-samples 2016-12-16 13:25:56 -05:00
widgets add widget sdk version 2 contribution demand to the samples extension. 2016-07-24 22:54:56 -07:00
work-item-form Update to correctly reflect the use of VSS.ready 2016-06-06 09:03:09 -07:00
.gitignore Update backlogs-panel sample to use latest TypeScript and new VSS SDK. 2016-12-09 10:41:11 -05:00
LICENSE Initial commit 2015-04-23 15:20:31 +01:00
README.md Update README.md 2017-01-04 16:00:25 -05:00

README.md

Visual Studio Team Services Sample Extensions

Samples to help jump-start your development of extensions for Visual Studio Team Services.

Get started

If you plan to package any of the sample extensions, get:

  1. Node.js
  2. Team Foundation command line interface (npm install -g tfx-cli)
  3. If the extension uses bower (look for bower.json), Bower (npm install -g bower)

If you plan to compile any of the sample extensions, get:

  1. TypeScript (npm install -g typescript)

Get the web extension SDK

Each web extension sample has a bower.json or package.json file, which references third-party libraries used by the sample, including the Visual Studio Services Web Extension SDK. This SDK JavaScript file is required by all web extensions.

From the directory of the sample, run:

If there is a bower.json file present

bower install

or if there is only a package.json file present

npm install

Compile TypeScript Samples

Once the package is installed, simply run tsc. You can alternatively run npm run build, which ensures the correct version of the TypeScript compiler is used. This will also generate the extension package.

Try the extension in Visual Studio Team Services

Most samples can be run without any modifications on Visual Studio Team Services. The steps are:

  1. Create a free Visual Studio Team Services account
  2. Create a Visual Studio Marketplace Publisher (all extensions are uploaded under a publisher)
  3. Verify the extension's manifest file (vss-extension.json) either has the public attribute set to false or is not specified (this ensures your extension is not inadvertently made available to all Team Services users)
  4. Package the extension with the ID of your publisher (run tfx extension create --publisher MYPUBLISHERID)
  5. Upload the produced .vsix file to the Marketplace
  6. Share your extension with your Team Services account (right-click on the published extension and select Share)
  7. Install the extension into the account (click on the published extension's title and then click Install)

See the full instructions.

Available samples

Contributions Guide

image

See the places where you can extend and enhance the user's web experience with an extension ---- right from within the web experience.

Build Inspector

Learn about advanced extension concepts like module loading, using UI controls, history, and more.

Note: this sample is written in TypeScript.

UI

image

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

Public Events (for Team Calendar)

Custom event source for the Team Calendar extension for public holidays.

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.

Release management extensions

Deployment status enhancer

Once this extension is installed, it shows an enhanced view of the deployment status to each environment

This extension showcases

a summary section contribution to Release summary page.

image

a tab contribution to Release summary page.

image

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.