Created
February 22, 2017 14:41
-
-
Save LoyEgor/65de87469a1918845d4b7b72c0ad4b4b to your computer and use it in GitHub Desktop.
Archive.zip project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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