sindresorhus / gulp-zip

ZIP compress files
MIT License
270 stars 47 forks source link

no zipfile #33

Closed dylang closed 10 years ago

dylang commented 10 years ago

Finally trying gulp out tonight and I'm not sure if I'm just not getting it, too tired, or there's a bug in this module.

Though the two tests pass, I can repeat this with the included gulpfile:

~/projects/pr/gulp-zip ✓ master ❯ cat gulpfile.js
var gulp = require('gulp');
var zip = require('./index');

gulp.task('default', function () {
    gulp.src('fixture/fixture.txt')
        .pipe(zip('test.zip'))
        .pipe(gulp.dest('dest'));
});
~/projects/pr/gulp-zip ✓ master ❯ gulp
[00:09:58] Using gulpfile ~/projects/pr/gulp-zip/gulpfile.js
[00:09:58] Starting 'default'...
[00:09:58] Finished 'default' after 7.7 ms
~/projects/pr/gulp-zip ✓ master ❯ ls -al dest
ls: dest: No such file or directory
dylang commented 10 years ago

I just confirmed my code works by using gulp-zip@^1.

artem-malko commented 10 years ago

+1

sindresorhus commented 10 years ago

Sorry about. Bad tests...

dyaa commented 10 years ago

I have the same problem

When i use gulp.src('src/*') is has no result or any Zip files

but when i target a file like gulp.src('fixture/fixture.txt') it work.

How can i zip the whole "App" folder?

ialphan commented 10 years ago

@dyaa Try something like this:

gulp.src(app.dist + "**" + "/")