Last active
March 9, 2020 00:16
-
-
Save wowthemesnet/c5c8cad64b3262aa668414d59d18d4c1 to your computer and use it in GitHub Desktop.
Gulp-zip for Gulp4
This file contains hidden or 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
function deploy() { | |
return src([ | |
'./**/*', | |
'!bower_components', | |
'!./{node_modules,node_modules/**/*}', | |
'!./package-lock.json', | |
'!./debug.log', | |
'!./gitignore', | |
'!./assets/{sass,sass/*}' | |
], {base: "."}) | |
.pipe(zip('themename.zip')) | |
.pipe(dest('../../')) | |
} | |
exports.deploy = deploy; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment