gulp-typescript
Advanced tools
Comparing version 3.1.6 to 3.1.7
{ | ||
"name": "gulp-typescript", | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"description": "A typescript compiler for gulp with incremental compilation support.", | ||
@@ -66,9 +66,9 @@ "homepage": "https://github.com/ivogabe/gulp-typescript", | ||
"devDependencies": { | ||
"@types/chalk": "^0.4.31", | ||
"@types/gulp-util": "^3.0.29", | ||
"@types/node": "^6.0.46", | ||
"@types/source-map": "^0.1.29", | ||
"@types/through2": "^2.0.31", | ||
"@types/vinyl": "^1.2.30", | ||
"@types/vinyl-fs": "0.0.28", | ||
"@types/chalk": "0.4.31", | ||
"@types/gulp-util": "3.0.31", | ||
"@types/node": "7.0.22", | ||
"@types/source-map": "0.5.0", | ||
"@types/through2": "2.0.33", | ||
"@types/vinyl": "2.0.0", | ||
"@types/vinyl-fs": "2.4.5", | ||
"gulp": "~3.9.1", | ||
@@ -82,6 +82,6 @@ "gulp-concat": "~2.6.0", | ||
"rimraf": "~2.5.2", | ||
"typescript": "2.0.3" | ||
"typescript": "2.3.3" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "~2.0.3 || >=2.0.0-dev || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev" | ||
"typescript": "~2.0.3 || >=2.0.0-dev || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev" | ||
}, | ||
@@ -88,0 +88,0 @@ "scripts": { |
@@ -19,5 +19,5 @@ gulp-typescript | ||
-------------- | ||
##### 1. Install gulp | ||
##### 1. Install gulp CLI | ||
```shell | ||
npm install --global gulp | ||
npm install --global gulp-cli | ||
``` | ||
@@ -77,3 +77,3 @@ ##### 2. Install gulp in the project dependency | ||
noImplicitAny: true, | ||
out: 'output.js' | ||
outFile: 'output.js' | ||
})) | ||
@@ -224,3 +224,3 @@ .pipe(gulp.dest('built/local')); | ||
3. Execute `git submodule update --init` to pull down the TypeScript compiler/services versions used in the test suite. | ||
4. Ensure the gulp CLI is globally installed (`npm install -g gulp`). | ||
4. Ensure the gulp CLI is globally installed (`npm install -g gulp-cli`). | ||
5. Execute the tests: `gulp`. | ||
@@ -227,0 +227,0 @@ |
"use strict"; | ||
var path = require('path'); | ||
var input_1 = require('./input'); | ||
var host_1 = require('./host'); | ||
var reporter_1 = require('./reporter'); | ||
var utils = require('./utils'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path = require("path"); | ||
var input_1 = require("./input"); | ||
var host_1 = require("./host"); | ||
var reporter_1 = require("./reporter"); | ||
var utils = require("./utils"); | ||
/** | ||
@@ -8,0 +9,0 @@ * Compiles a whole project, with full type checking |
"use strict"; | ||
var utils = require('./utils'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var utils = require("./utils"); | ||
var Host = (function () { | ||
@@ -4,0 +5,0 @@ function Host(typescript, currentDirectory, input, options) { |
"use strict"; | ||
var path = require('path'); | ||
var utils = require('./utils'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path = require("path"); | ||
var utils = require("./utils"); | ||
var FileChangeState; | ||
(function (FileChangeState) { | ||
@@ -10,9 +12,8 @@ FileChangeState[FileChangeState["New"] = 0] = "New"; | ||
FileChangeState[FileChangeState["NotFound"] = 4] = "NotFound"; | ||
})(exports.FileChangeState || (exports.FileChangeState = {})); | ||
var FileChangeState = exports.FileChangeState; | ||
})(FileChangeState = exports.FileChangeState || (exports.FileChangeState = {})); | ||
var FileKind; | ||
(function (FileKind) { | ||
FileKind[FileKind["Source"] = 0] = "Source"; | ||
FileKind[FileKind["Config"] = 1] = "Config"; | ||
})(exports.FileKind || (exports.FileKind = {})); | ||
var FileKind = exports.FileKind; | ||
})(FileKind = exports.FileKind || (exports.FileKind = {})); | ||
var File; | ||
@@ -19,0 +20,0 @@ (function (File) { |
import * as ts from 'typescript'; | ||
import * as _project from './project'; | ||
import * as _reporter from './reporter'; | ||
declare function compile(): compile.CompileStream; | ||
declare function compile(proj: _project.Project, theReporter?: _reporter.Reporter): compile.CompileStream; | ||
declare function compile(settings: compile.Settings, theReporter?: _reporter.Reporter): compile.CompileStream; | ||
declare function compile(): compile.CompileStream; | ||
declare module compile { | ||
@@ -45,6 +45,6 @@ interface Settings { | ||
export import reporter = _reporter; | ||
function createProject(settings?: Settings): any; | ||
function createProject(tsConfigFileName: string, settings?: Settings): any; | ||
function createProject(tsConfigFileName: string, settings?: Settings): Project; | ||
function createProject(settings?: Settings): Project; | ||
function filter(...args: any[]): void; | ||
} | ||
export = compile; |
"use strict"; | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var _project = require('./project'); | ||
var utils = require('./utils'); | ||
var _reporter = require('./reporter'); | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
var _project = require("./project"); | ||
var utils = require("./utils"); | ||
var _reporter = require("./reporter"); | ||
function compile(param, theReporter) { | ||
@@ -76,3 +76,2 @@ if (arguments.length >= 3) { | ||
} | ||
var compile; | ||
(function (compile) { | ||
@@ -122,3 +121,3 @@ compile.reporter = _reporter; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i - 0] = arguments[_i]; | ||
args[_i] = arguments[_i]; | ||
} | ||
@@ -125,0 +124,0 @@ utils.deprecate('ts.filter() is deprecated', 'soon you can use tsProject.resolve()', 'Filters have been removed as of gulp-typescript 3.0.\nSoon tsProject.resolve() will be available as an alternative.\nSee https://github.com/ivogabe/gulp-typescript/issues/190.'); |
"use strict"; | ||
var path = require('path'); | ||
var sourceMap = require('source-map'); | ||
var gutil = require('gulp-util'); | ||
var utils = require('./utils'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path = require("path"); | ||
var sourceMap = require("source-map"); | ||
var gutil = require("gulp-util"); | ||
var utils = require("./utils"); | ||
var Output = (function () { | ||
@@ -7,0 +8,0 @@ function Output(_project, streamFull, streamJs, streamDts) { |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var stream = require('stream'); | ||
var vfs = require('vinyl-fs'); | ||
var path = require('path'); | ||
var gutil = require('gulp-util'); | ||
var utils = require('./utils'); | ||
var reporter_1 = require('./reporter'); | ||
var input_1 = require('./input'); | ||
var output_1 = require('./output'); | ||
var compiler_1 = require('./compiler'); | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var stream = require("stream"); | ||
var vfs = require("vinyl-fs"); | ||
var path = require("path"); | ||
var gutil = require("gulp-util"); | ||
var utils = require("./utils"); | ||
var reporter_1 = require("./reporter"); | ||
var input_1 = require("./input"); | ||
var output_1 = require("./output"); | ||
var compiler_1 = require("./compiler"); | ||
function setupProject(projectDirectory, config, options, typescript) { | ||
@@ -92,8 +98,9 @@ var input = new input_1.FileCache(typescript, options); | ||
function CompileStream(project) { | ||
_super.call(this, { objectMode: true }); | ||
this.js = new CompileOutputStream(); | ||
this.dts = new CompileOutputStream(); | ||
this.project = project; | ||
var _this = _super.call(this, { objectMode: true }) || this; | ||
_this.js = new CompileOutputStream(); | ||
_this.dts = new CompileOutputStream(); | ||
_this.project = project; | ||
// Prevent "Unhandled stream error in pipe" when a compilation error occurs. | ||
this.on('error', function () { }); | ||
_this.on('error', function () { }); | ||
return _this; | ||
} | ||
@@ -134,3 +141,3 @@ CompileStream.prototype._write = function (file, encoding, cb) { | ||
function CompileOutputStream() { | ||
_super.call(this, { objectMode: true }); | ||
return _super.call(this, { objectMode: true }) || this; | ||
} | ||
@@ -137,0 +144,0 @@ CompileOutputStream.prototype._read = function () { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import * as ts from 'typescript'; | ||
@@ -3,0 +2,0 @@ import { VinylFile } from './types'; |
"use strict"; | ||
var gutil = require('gulp-util'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var gutil = require("gulp-util"); | ||
function emptyCompilationResult() { | ||
@@ -4,0 +5,0 @@ return { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
"use strict"; | ||
var path = require('path'); | ||
var gutil = require('gulp-util'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path = require("path"); | ||
var gutil = require("gulp-util"); | ||
function forwardSlashes(fileName) { | ||
@@ -5,0 +6,0 @@ return fileName.replace(/\\/g, '/'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
72946
1433