Skip to content

Instantly share code, notes, and snippets.

@marcedroid
Forked from salarmehr/gulpifle.js
Last active October 5, 2016 21:26
Show Gist options
  • Save marcedroid/651b6b24b254626e7546e66589ede493 to your computer and use it in GitHub Desktop.
Save marcedroid/651b6b24b254626e7546e66589ede493 to your computer and use it in GitHub Desktop.
Se agregó doc y test se guarda el zip mismo directorio
//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