Add gulp-msbuild package

This commit is contained in:
Aaron Oneal 2017-08-20 16:32:47 -07:00
parent 83230ae14e
commit 067512a2d3
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import * as msbuild from "gulp-msbuild";
let stream = msbuild({
stdout: false,
stderr: true,
errorOnFail: false,
logCommand: false,
targets: ['Rebuild'],
configuration: 'Release',
toolsVersion: 4.0,
architecture: 'x86',
properties: { WarningLevel: 2 },
verbosity: 'quiet',
maxcpucount: 0,
nodeReuse: true,
nologo: false,
fileLoggerParameters: 'LogFile=Build.log;Append;Verbosity=diagnostic',
consoleLoggerParameters: '',
loggerParameters: 'XMLLogger,./MyLogger.dll;OutputAsHTML',
emitEndEvent: false
});

33
types/gulp-msbuild/index.d.ts vendored Normal file
View File

@ -0,0 +1,33 @@
// Type definitions for gulp-msbuild 0.5
// Project: https://github.com/hoffi/gulp-msbuild#readme
// Definitions by: Spicy Pixel <http://spicypixel.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
declare namespace gulpMsBuild {
type GulpMsBuild = (options?: Options) => NodeJS.ReadWriteStream;
interface Options {
stdout?: boolean; // false
stderr?: boolean; // true
errorOnFail?: boolean; // false
logCommand?: boolean; // false
targets?: string[]; // ['Rebuild']
configuration?: string; // 'Release' | 'Debug'
toolsVersion?: number; // 4.0
architecture?: string; // 'x86' | 'x64'
properties?: any; // msbuild({ properties: { WarningLevel: 2 } })
verbosity?: string; // 'quiet', 'minimal', 'normal', 'detailed', 'diagnostic'
maxcpucount?: number; // Default: 0 = Automatic selection | Possible Values: -1 (MSBuild Default), 0 (Automatic), > 0 (Concrete value)
nodeReuse?: boolean; // true = Nodes remain after the build finishes so that subsequent builds can use them
nologo?: boolean; // false -> Show Startup Banner and Copyright Message
fileLoggerParameters?: string; // msbuild({ fileLoggerParameters: 'LogFile=Build.log;Append;Verbosity=diagnostic' })
consoleLoggerParameters?: string;
loggerParameters?: string; // msbuild({ loggerParameters: 'XMLLogger,./MyLogger.dll;OutputAsHTML' })
emitEndEvent?: boolean; // false
}
}
declare var gulpMsBuild: gulpMsBuild.GulpMsBuild;
export = gulpMsBuild;

View File

@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"gulp-msbuild-tests.ts"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }