gulp-bundle-assets icon indicating copy to clipboard operation
gulp-bundle-assets copied to clipboard

Combine bundle.watch with gulp.pipe, or have callback on a complete iteration

Open bwbb opened this issue 7 years ago • 2 comments

Hi, I need to deploy my assets to multiple directories, after they've been built by the bundle.watch( options ) command. Ideally, the one of the directories will have an ENV variable as part of the path.

Is there a callback function for when an iteration of the watch cycle completes? or can I combine bundle.watch with gulp.pipe, so as to deploy to multiple destinations?

Thanks!

bwbb avatar Dec 28 '17 16:12 bwbb

Actually someone made a PR for this but the tests aren't currently passing: https://github.com/dowjones/gulp-bundle-assets/pull/72

If you want to take a stab at fixing up the PR, I'll get it merged for you!

chmontgomery avatar Jan 10 '18 02:01 chmontgomery

Ok, I have a PR (#106 ) with tests passing locally, but it looks like it's failing in travis because of a bug in the hoek dependency? https://travis-ci.org/dowjones/gulp-bundle-assets/jobs/328295274

bwbb avatar Jan 12 '18 22:01 bwbb