Skip to content

Instantly share code, notes, and snippets.

@LoyEgor
Created February 22, 2017 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LoyEgor/65de87469a1918845d4b7b72c0ad4b4b to your computer and use it in GitHub Desktop.
Save LoyEgor/65de87469a1918845d4b7b72c0ad4b4b to your computer and use it in GitHub Desktop.
Archive.zip project
zip = require('gulp-zip'),
chmod = require('gulp-chmod'),
//zip compress files
gulp.task('zip', function() {
return gulp.src(['./{app,dist}/**/*', './gulpfile.js', './package.json'])
.pipe(chmod(0o755, 0o40755)) //fix permission on unix
.pipe(zip('Archive.zip'))
.pipe(gulp.dest('./'))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment