diff --git a/notNeededPackages.json b/notNeededPackages.json index 2ac26a2419..65a2516a08 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -120,6 +120,12 @@ "sourceRepoURL": "https://github.com/mikedeboer/node-github", "asOfVersion": "7.1.0" }, + { + "libraryName": "gulp-typescript", + "typingsPackageName": "gulp-typescript", + "sourceRepoURL": "https://github.com/ivogabe/gulp-typescript", + "asOfVersion": "2.13.0" + }, { "libraryName": "Facebook's Immutable", "typingsPackageName": "immutable", diff --git a/types/gulp-typescript/gulp-typescript-tests.ts b/types/gulp-typescript/gulp-typescript-tests.ts deleted file mode 100644 index 491d6790d2..0000000000 --- a/types/gulp-typescript/gulp-typescript-tests.ts +++ /dev/null @@ -1,65 +0,0 @@ -import gulp = require("gulp"); -import typescript = require("gulp-typescript"); - -function merge(streams: NodeJS.ReadWriteStream[]): NodeJS.ReadWriteStream { - return null; -} - -gulp.task('scripts', function() { - var tsResult = gulp.src('lib/*.ts') - .pipe(typescript({ - declarationFiles: true, - noExternalResolve: true, - skipLibCheck: true - })); - - return merge([ - tsResult.dts.pipe(gulp.dest('release/definitions')), - tsResult.js.pipe(gulp.dest('release/js'))] - ); -}); - - -var tsProject = typescript.createProject({ - declarationFiles: true, - noExternalResolve: true -}); - -gulp.task('scripts', function() { - var tsResult = tsProject.src() - .pipe(typescript(tsProject)); - - return tsResult.js.pipe(gulp.dest('release')); -}); - -var mainTscProject = typescript.createProject("tsconfig.json", { - target: "es6" -}); - -gulp.task('scripts', function() { - var tsResult = gulp.src('lib/*.ts') - .pipe(typescript(tsProject)); - - return merge([ // Merge the two output streams, so this task is finished when the IO of both operations are done. - tsResult.dts.pipe(gulp.dest('release/definitions')), - tsResult.js.pipe(gulp.dest('release/js'))] - ); -}); -gulp.task('watch', ['scripts'], function() { - gulp.watch('lib/*.ts', ['scripts']); -}); - -gulp.task('scripts', function () { - return gulp.src('lib/*.ts') - .pipe(typescript(tsProject, undefined, typescript.reporter.fullReporter())); -}); - -gulp.task('default', function () { - return gulp.src('src/**/*.ts') - .pipe(typescript()) - .pipe(gulp.dest('built/local')); -}); - -var compilerOptions = tsProject.config.compilerOptions; -var exclude = tsProject.config.exclude; -var files = tsProject.config.files; diff --git a/types/gulp-typescript/index.d.ts b/types/gulp-typescript/index.d.ts deleted file mode 100644 index 121abc325b..0000000000 --- a/types/gulp-typescript/index.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -// Type definitions for gulp-typescript -// Project: https://github.com/ivogabe/gulp-typescript -// Definitions by: Asana , Thomas Corbière -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - - -declare function GulpTypescript(params?: GulpTypescript.Params, filters?: GulpTypescript.FilterSettings, reporter?: GulpTypescript.Reporter): GulpTypescript.CompilationStream; - -declare namespace GulpTypescript { - export function createProject(params?: Params): Project; - export function createProject(file: string, params?: Params): Project; - export function filter(filters: FilterSettings): CompilationStream; - interface Params { - declarationFiles?: boolean; - module?: string; - noEmitOnError?: boolean; - noExternalResolve?: boolean; - noImplicitAny?: boolean; - noLib?: boolean; - removeComments?: boolean; - sourceRoot?: string; // use gulp-sourcemaps instead - sortOutput?: boolean; - target?: string; - typescript?: any; - outFile?: string; - outDir?: string; - suppressImplicitAnyIndexErrors?: boolean; - jsx?: string; - declaration?: boolean; - emitDecoratorMetadata?: boolean; - experimentalDecorators?: boolean; - experimentalAsyncFunctions?: boolean; - moduleResolution?: string; - noEmitHelpers?: boolean; - preserveConstEnums?: boolean; - isolatedModules?: boolean; - skipLibCheck?: boolean; - } - - interface TsConfig { - files?: string[]; - exclude?: string[]; - compilerOptions?: any; - } - - interface Project { - config: TsConfig; - src(): NodeJS.ReadWriteStream; - } - - interface FilterSettings { - referencedFrom?: string[]; - } - - interface Reporter { - error(error: any): void; - } - - interface CompilationStream extends NodeJS.ReadWriteStream { - dts: NodeJS.ReadWriteStream; - js: NodeJS.ReadWriteStream; - } - - namespace reporter { - function nullReporter(): Reporter; - function defaultReporter(): Reporter; - function fullReporter(showFullFilename?: boolean): Reporter; - } -} - -export = GulpTypescript; diff --git a/types/gulp-typescript/tsconfig.json b/types/gulp-typescript/tsconfig.json deleted file mode 100644 index 120791965a..0000000000 --- a/types/gulp-typescript/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "paths": { - "q": [ "q/v0" ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "gulp-typescript-tests.ts" - ] -} \ No newline at end of file diff --git a/types/gulp-useref/gulp-useref-tests.ts b/types/gulp-useref/gulp-useref-tests.ts index 9f2bd409d5..ff7f01abcf 100644 --- a/types/gulp-useref/gulp-useref-tests.ts +++ b/types/gulp-useref/gulp-useref-tests.ts @@ -40,7 +40,7 @@ gulp.task('default', function () { // options.additionalStreams -import * as ts from 'gulp-typescript'; +declare function ts(): any; // create stream of virtual files var tsStream = gulp.src('src/**/*.ts')