D
D
DoubleWish2016-10-25 13:49:44
JavaScript
DoubleWish, 2016-10-25 13:49:44

Why don't gulp-zip and gulp-sequence/run-sequence get along?

Hello.
I don't know what to refer to here.
I create a dependency using the plugin (I tried both) and would like to pack the build files into a zip archive at the end of the build task.
Looks like this

gulp.task('zipper', function(){
      return gulp.src('dist/**/*')
        .pipe(zip('archive.zip'))
        .pipe(gulp.dest('./'));
})

gulp.task('build', gulpSequence('clean', ['sass','buildjs, jade'], 'makedist', 'zipper'))

clean - cleans up the dist folder
[...] - processes files in the app folder
makedist - moves compiled files
to the dist folder zipper accesses the dist folder and creates a zip file
Problem - no zip file is created.
If you call zipper separately, immediately after build, it will run all the files as it should and create an archive.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DoubleWish, 2016-10-25
@ZeroPT

Used the additional merge-stream plugin.
added it to 'makedist'.
After that, everything worked with a bang.
Grigory S. thanks for the tip.
return merge(a,b,c,d,e);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question