Gulp returns 0 when tasks fail

后端 未结 6 1263
庸人自扰
庸人自扰 2021-01-01 09:09

I\'m using Gulp in my small project in order to run tests and lint my code. When any of those tasks fail, Gulp always exits with return code 0. If I run jshint by hand, it e

6条回答
  •  孤城傲影
    2021-01-01 09:43

    gulp.task('default', function(done) {
      return gulp.src( ... ).pipe(jasmine( ... )).on('error', function(err) { done(err); } )
    });
    

    Works for me

提交回复
热议问题