Coder Social home page Coder Social logo

sunday-out / vsts-extension-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/vsts-extension-samples

0.0 1.0 0.0 2.93 MB

Sample extensions for Visual Studio Team Services

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

License: MIT License

CSS 1.37% HTML 41.60% TypeScript 48.11% JavaScript 8.92%

vsts-extension-samples's Introduction

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. Bower (npm install -g bower)
  3. Team Foundation command line interface(npm install -g tfx-cli)

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

  1. TypeScript 1.7 or higher (npm install -g typescript)
  2. Typings (npm install -g typings) (manages TypeScript declare files)

Get the web extension SDK

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

From the directory of the sample, run:

bower install

Get TypeScript declare files and compile

Each sample written in TypeScript has a typings.json file, which references the TypeScript declare files the sample needs to compile. This includes the declare files for Visual Studio Services and Team Foundation types.

From the directory of a sample written in TypeScript, run:

typings install

Each sample written in TypeScript has a tsconfig.json file, which defines the necessary TypeScript compiler settings for the sample.

From the same directory, run:

tsc

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.

vsts-extension-samples's People

Contributors

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

Watchers

James Cloos 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.