Skip to content

Commit 6d21cf6

Browse files
committed
Add more default options to gulpfile
1 parent cf15e82 commit 6d21cf6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Gulpfile.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ import newer = require("gulp-newer");
1111
import tsc = require("gulp-typescript");
1212
declare module "gulp-typescript" {
1313
interface Settings {
14-
stripInternal?: boolean;
14+
pretty?: boolean;
1515
newLine?: string;
16+
noImplicitThis?: boolean;
17+
stripInternal?: boolean;
18+
types?: string[];
1619
}
1720
interface CompileStream extends NodeJS.ReadWriteStream {} // Either gulp or gulp-typescript has some odd typings which don't reflect reality, making this required
1821
}
@@ -306,9 +309,11 @@ function needsUpdate(source: string | string[], dest: string | string[]): boolea
306309

307310
function getCompilerSettings(base: tsc.Settings, useBuiltCompiler?: boolean): tsc.Settings {
308311
const copy: tsc.Settings = {};
309-
// TODO: Add --noImplicitThis --types --pretty when gulp-typescript adds support for them
310-
copy.noImplicitAny = true;
311312
copy.noEmitOnError = true;
313+
copy.noImplicitAny = true;
314+
copy.noImplicitThis = true;
315+
copy.pretty = true;
316+
copy.types = [];
312317
for (const key in base) {
313318
copy[key] = base[key];
314319
}

0 commit comments

Comments
 (0)