Greetings!
So the README has a nice usage example, but doesn't quite work as I expected. Example:
// 'build-to-temp-folder' does what 'build' does, just in ./.tmp// this is so I can then test .dist against .tmp and validate that // the build task was run before merging in a branch.// Jenkins will run this task & if there is a diff should fail.gulp.task('verify',['build-to-temp-folder'],function(){returngulp// get the tmp files.src(tmpAll)// tmpAll = './.tmp/**/*'// compare it to the build, there should be no diff.pipe(diff(distAll))// distAll = './dist/**/*'// if there is, fail so Jenkins knows to say "not passing".pipe(diff.reporter({fail: true}));});This line:
.pipe(diff(/* 'target directory to diff against', defaults to diff against original source file */))
is what made me think this will work, but I get an events.js:141 throw er; // Unhandled 'error' event. It appears that you may only be able to gulp.src(files).pipe(doSomething()).pip(diff()), and test for a diff. Is there anyway to do what I am intending?
Browsing source now to see if I can figure this out.
Greetings!
So the README has a nice usage example, but doesn't quite work as I expected. Example:
This line:
is what made me think this will work, but I get an
events.js:141 throw er; // Unhandled 'error' event. It appears that you may only be able togulp.src(files).pipe(doSomething()).pip(diff()), and test for a diff. Is there anyway to do what I am intending?Browsing source now to see if I can figure this out.