sindresorhus / gulp-zip

ZIP compress files
MIT License
270 stars 47 forks source link

Missing files in subdirectories #78

Closed TravelingTechGuy closed 8 years ago

TravelingTechGuy commented 8 years ago

I'm running into an issue: when zipping a full library structure, one file will be missing. I'm trying to zip a Chrome extension. It has at most 2 levels of directories:

src  
  scripts
    vendors
      jqeury.js
      bootstrap.js
      ..
    myscript1.js
    myscript2.js
  css
    css1.css
  icons
    icon1
    icon2

I run:

return gulp.src('build/**')
    .pipe(zip('myfile.zip'))
    .pipe(gulp.dest('dist'));
});

And the resulting zip file almost always misses either an icon file, or one of the vendor scripts. That caused me to upload faulty extensions to the Chrome Store, having to later republish (with a new version, because you cannot replace an existing extension, only update). I've been running into this issues with several versions of the module. Any assistance will be appreciated.

TravelingTechGuy commented 8 years ago

Closing issues: I've added a debug line prior to the zip command, and verified I'm not getting the full list of files, so it's an error somewhere else.