Closed gwicksted closed 6 years ago
() => gulp.src("input.ts")
is a ES6 short-hand for () => { return gulp.src("input.ts")
. Your examples are not syntactically correct.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
Can't believe I missed that! My test had the {}
. Sorry! My bad.
gulp-tslint version: (latest source #53534f8) 8.1.2 tslint version: 5.8.0 gulp: 3.9.1 node: 9.0.0 Operating system: Windows 10 x64
Example gulp configuration -- here are just 2 examples from the readme:
Corrected documentation (just the
return
statement added):Error console output:
long pause here
Reasoning behind the change:
If you don't return the
stream
, gulp expects the callback to be called so it ends up waiting unnecessarily after tslint completes.