-
-
Save marcedroid/651b6b24b254626e7546e66589ede493 to your computer and use it in GitHub Desktop.
Se agregó doc y test se guarda el zip mismo directorio
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
//Gulp limpiar vendors de composer fork de salarmehr/gulpifle.js | |
var gulp = require('gulp'); | |
var zip = require('gulp-zip'); | |
gulp.task('zip-vendor', function () { | |
return gulp.src( | |
[ | |
'vendor/**/*', | |
'!vendor/**/*.md', | |
'!vendor/**/*.txt', | |
'!vendor/**/*.pdf', | |
'!vendor/**/LICENSE', | |
'!vendor/**/CHANGES', | |
'!vendor/**/README', | |
'!vendor/**/VERSION', | |
'!vendor/**/composer.json', | |
'!vendor/**/.gitignore', | |
'!vendor/**/docs', | |
'!vendor/**/docs/**', | |
'!vendor/**/doc', | |
'!vendor/**/doc/**', | |
'!vendor/**/tests', | |
'!vendor/**/tests/**', | |
'!vendor/**/test', | |
'!vendor/**/test/**', | |
'!vendor/**/unitTests', | |
'!vendor/**/unitTests/**', | |
'!vendor/**/.git', | |
'!vendor/**/.git/**', | |
'!vendor/**/examples', | |
'!vendor/**/examples/**', | |
'!vendor/**/build.xml', | |
'!vendor/**/phpunit.xml', | |
'!vendor/**/phpunit.xml.dist' | |
], | |
{base: '.'} | |
) | |
.pipe(zip('vendor.zip')) | |
.pipe(gulp.dest('.')); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment