sindresorhus / gulp-zip

ZIP compress files
MIT License
270 stars 47 forks source link

The plugin dosen't work when used to zip a filename.docset #39

Closed minwe closed 9 years ago

minwe commented 9 years ago

I use it to zip a folder, there is a folder named filename.docset in this folder, it not works (do nothing).

For example, it's like https://github.com/exlee/d3-dash-gen D3JS.docset.

What's wrong?

sindresorhus commented 9 years ago

What does your gulpfile look like?

minwe commented 9 years ago

Sorry, it's my mistake. Thanks.

├── README.md
├── dist
│   └── D3JS.docset
└── gulpfile.js

Not Working

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

Working:

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