gulp.src('*.js').pipe($.watch())
.pipe(myJavascriptPipe())
.pipe(gulp.dest('build'))
.pipe(added_or_removed)
.pipe(/* тут мне надо запустить перестроение index.html */)
.pipe(added_or_removed.restore());
var stream = gulp.src('*.js').pipe($.watch())
.pipe(myJavascriptPipe())
.pipe(gulp.dest('build'))
.pipe(added_or_removed);
gulp.src('./src/index.html')
.pipe(inject(stream))
.pipe(gulp.dest('./dist'));
stream.pipe(added_or_removed.restore());