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
I have a syntax error in a file (missing '};') and the gulp-jsdoc module will throw an exception, but gulp-plumber does not catch this and keep working.
gulp-jsdoc uses https://github.com/juliangruber/multipipe, which replaces default error handler - so plumber thinks new error handler is intentionally placed and do nothing. Maybe it is better to force-replace error handlers after plumber, since this is not first new error handler problem occurrence.
floatdrop
changed the title
Gulp-Plumber exits on Gulp-JSDOC error
Not working with gulp-jsdoc
May 27, 2015
I have a syntax error in a file (missing '};') and the gulp-jsdoc module will throw an exception, but gulp-plumber does not catch this and keep working.
Sample JS:
angular.module('MyApp').service("Data", ["$firebaseObject", "$firebaseArray", "GetFireBaseObject",
function($firebaseObject, $firebaseArray, GetFireBaseObject) {
var MemberRef = GetFireBaseObject.DataURL('data/');
// }; // Commented out to cause error.
]);
Gulp fails with Error: Line xx: Unexpected token )
Gulp.Task:
gulp.task('Documentation-API', function() {
return gulp.src(SourcePath.javascript, {cwd: RootDir.home})
.pipe(plumber( { errorHandler: OnErrorHandler } ))
.pipe(jsdoc.parser())
.pipe(jsdoc.generator(RootDir.docs + DocumentationPath.javascript )
);
});
The text was updated successfully, but these errors were encountered: