You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release/main.js
+7-18Lines changed: 7 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,21 @@
1
1
"use strict";
2
2
varfs=require('fs');
3
3
varpath=require('path');
4
-
vargutil=require('gulp-util');
5
4
var_project=require('./project');
6
5
varutils=require('./utils');
7
6
var_reporter=require('./reporter');
8
7
functioncompile(param,theReporter){
9
8
if(arguments.length>=3){
10
-
deprecate("Reporter are now passed as the second argument","remove the second argument","Filters have been removed as of gulp-typescript 3.0.\nThe reporter is now passed as the second argument instead of the third argument.");
9
+
utils.deprecate("Reporter are now passed as the second argument","remove the second argument","Filters have been removed as of gulp-typescript 3.0.\nThe reporter is now passed as the second argument instead of the third argument.");
11
10
}
12
11
varproj;
13
12
if(typeofparam==="function"){
14
13
proj=param;
15
14
if(arguments.length>=2){
16
-
deprecate("ts(tsProject, ...) has been deprecated","use .pipe(tsProject(reporter)) instead","As of gulp-typescript 3.0, .pipe(ts(tsProject, ...)) should be written as .pipe(tsProject(reporter)).");
15
+
utils.deprecate("ts(tsProject, ...) has been deprecated","use .pipe(tsProject(reporter)) instead","As of gulp-typescript 3.0, .pipe(ts(tsProject, ...)) should be written as .pipe(tsProject(reporter)).");
17
16
}
18
17
else{
19
-
deprecate("ts(tsProject) has been deprecated","use .pipe(tsProject(reporter)) instead","As of gulp-typescript 3.0, .pipe(ts(tsProject)) should be written as .pipe(tsProject()).");
18
+
utils.deprecate("ts(tsProject) has been deprecated","use .pipe(tsProject(reporter)) instead","As of gulp-typescript 3.0, .pipe(ts(tsProject)) should be written as .pipe(tsProject()).");
20
19
}
21
20
}
22
21
else{
@@ -31,7 +30,7 @@ function getTypeScript(typescript) {
31
30
returnrequire('typescript');
32
31
}
33
32
catch(e){
34
-
deprecate("TypeScript not installed","install with `npm install typescript --save-dev`","As of gulp-typescript 3.0, TypeScript isn't bundled with gulp-typescript any more.\nInstall the latest stable version with `npm install typescript --save-dev`\nor a nightly with `npm install typescript@next --save-dev`");
33
+
utils.deprecate("TypeScript not installed","install with `npm install typescript --save-dev`","As of gulp-typescript 3.0, TypeScript isn't bundled with gulp-typescript any more.\nInstall the latest stable version with `npm install typescript --save-dev`\nor a nightly with `npm install typescript@next --save-dev`");
35
34
thrownewError("TypeScript not installed");
36
35
}
37
36
}
@@ -41,10 +40,10 @@ function getCompilerOptions(settings, projectPath, configFileName) {
41
40
console.warn('gulp-typescript: sourceRoot isn\'t supported any more. Use sourceRoot option of gulp-sourcemaps instead.');
42
41
}
43
42
if(settings.noExternalResolve!==undefined){
44
-
deprecate("noExternalResolve is deprecated","use noResolve instead","The non-standard option noExternalResolve has been removed as of gulp-typescript 3.0.\nUse noResolve instead.");
43
+
utils.deprecate("noExternalResolve is deprecated","use noResolve instead","The non-standard option noExternalResolve has been removed as of gulp-typescript 3.0.\nUse noResolve instead.");
45
44
}
46
45
if(settings.sortOutput!==undefined){
47
-
deprecate("sortOutput is deprecated","your project might work without it","The non-standard option sortOutput has been removed as of gulp-typescript 3.0.\nYour project will probably compile without this option.\nOtherwise, if you're using gulp-concat, you should remove gulp-concat and use the outFile option instead.");
46
+
utils.deprecate("sortOutput is deprecated","your project might work without it","The non-standard option sortOutput has been removed as of gulp-typescript 3.0.\nYour project will probably compile without this option.\nOtherwise, if you're using gulp-concat, you should remove gulp-concat and use the outFile option instead.");
48
47
}
49
48
// Copy settings and remove several options
50
49
varnewSettings={};
@@ -121,18 +120,8 @@ var compile;
121
120
for(var_i=0;_i<arguments.length;_i++){
122
121
args[_i-0]=arguments[_i];
123
122
}
124
-
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.');
123
+
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.');
0 commit comments