Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
v3.0.2: Adding new TS build task project (#16)
Browse files Browse the repository at this point in the history
* Adding new project template and fixing typings issues

* Updating release notes
  • Loading branch information
jgarverick committed Feb 5, 2017
1 parent ff32024 commit 99a7c5a
Show file tree
Hide file tree
Showing 59 changed files with 3,422 additions and 40 deletions.
4 changes: 2 additions & 2 deletions BuildReleaseTaskItem/BuildReleaseTask.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<Description>Creates a new custom PowerShell task for use with Visual Studio Team Services. Can be used for build, release or both.</Description>
<Icon>VSOE.ico</Icon>
<TemplateID>ac994f77-fed5-4853-98f6-11c19c59c741</TemplateID>
<ProjectType>PowerShell</ProjectType>
<AppliesTo>Web,JavaScript,TypeScript</AppliesTo>
<ProjectType>CSharp</ProjectType>
<AppliesTo>Web,PowerShell</AppliesTo>
<RequiredFrameworkVersion>2.0</RequiredFrameworkVersion>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<DefaultName>BuildReleaseCustomTaskPS</DefaultName>
Expand Down
10 changes: 5 additions & 5 deletions BuildReleaseTaskItemTS/BuildReleaseTaskItemTS.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Description>Creates a new custom TypeScript task for use with Visual Studio Team Services. Can be used for build, release or both</Description>
<Icon>VSOE.ico</Icon>
<TemplateID>9e1430e7-8d12-4592-af2f-9746b702e35e</TemplateID>
<ProjectType>TypeScript</ProjectType>
<AppliesTo>Web,JavaScript</AppliesTo>
<ProjectType>CSharp</ProjectType>
<AppliesTo>Web,JavaScript,TypeScript</AppliesTo>
<RequiredFrameworkVersion>2.0</RequiredFrameworkVersion>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<DefaultName>BuildReleaseCustomTaskTS</DefaultName>
Expand All @@ -15,8 +15,8 @@
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
</TemplateData>
<TemplateContent>
<ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$\$fileinputname$.ts">task.ts</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$\task.json">task.json</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$\icon.png">icon.png</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="src\$fileinputname$\task.ts">task.ts</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="src\$fileinputname$\task.json">task.json</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="src\$fileinputname$\icon.png">icon.png</ProjectItem>
</TemplateContent>
</VSTemplate>
5 changes: 5 additions & 0 deletions BuildReleaseTaskItemTS/task.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export var TaskResult;
(function (TaskResult) {
TaskResult[TaskResult["Succeeded"] = 0] = "Succeeded";
TaskResult[TaskResult["Failed"] = 1] = "Failed";
})(TaskResult || (TaskResult = {}));
9 changes: 4 additions & 5 deletions BuildReleaseTaskItemTS/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"helpMarkDown": "[More Information](https://url.to/yourmarkdown)",
"category": "Utility",
"visibility": [
"Build",
"Build",
"Release"
],
"author": "$registeredorganization$",
Expand Down Expand Up @@ -40,10 +40,9 @@
],
"instanceNameFormat": "$fileinputname$",
"execution": {
"PowerShell3": {
"target": "$(currentDirectory)\\$fileinputname$.ps1",
"argumentFormat": "",
"workingDirectory": "$(currentDirectory)"
"Node": {
"target": "task.js",
"argumentFormat": ""
}
}
}
9 changes: 1 addition & 8 deletions BuildReleaseTaskItemTS/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ import shell = require('shelljs');
import fs = require('fs');
import path = require('path');
import os = require('os');
import minimatch = require('minimatch');
import globm = require('glob');
import util = require('util');
import tcm = require('./taskcommand');
import trm = require('./toolrunner');
import vm = require('./vault');
import semver = require('semver');
require('./extensions');
import tl = require('vsts-task-lib/task');

export enum TaskResult {
Succeeded = 0,
Expand Down
4 changes: 2 additions & 2 deletions DashboardWidgetItem/DashboardWidgetItem.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Description>Creates a new dashboard widget for use with Visual Studio Team Services.</Description>
<Icon>VSOE.ico</Icon>
<TemplateID>f0f3c850-3590-4ea7-9d4b-f22ff49fc8ee</TemplateID>
<ProjectType>TypeScript</ProjectType>
<AppliesTo>Web,JavaScript</AppliesTo>
<ProjectType>CSharp</ProjectType>
<AppliesTo>Web,JavaScript,TypeScript</AppliesTo>
<RequiredFrameworkVersion>2.0</RequiredFrameworkVersion>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<DefaultName>DashboardWidgetItem</DefaultName>
Expand Down
2 changes: 1 addition & 1 deletion VSTSBuildTask/VSOBuildTask.vstemplate
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010">
<TemplateData>
<Name>Visual Studio Team Services Build Task</Name>
<Name>Visual Studio Team Services Build Task Project</Name>
<Description>Creates a custom VSTS Build Task</Description>
<Icon>VSOE.ico</Icon>
<ProjectType>PowerShell</ProjectType>
Expand Down
2 changes: 1 addition & 1 deletion VSTSBuildTask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"jasmine": "^2.5.1",
"rimraf": "^2.5.4",
"tfx-cli": "^0.3.45",
"typescript": "^2.1.4"
"typescript": "^2.2.0"
},
"dependencies": {
"@types/jquery": "^2.0.34",
Expand Down
239 changes: 239 additions & 0 deletions VSTSBuildTaskTS/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# Ignore the settings file
**/settings.tfx.json

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config

# Windows Store app package directory
AppPackages/
BundleArtifacts/

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe

# FAKE - F# Make
.fake/
Loading

0 comments on commit 99a7c5a

Please sign in to comment.