From 02874adbd094cb1d3632187d7b6d95927f50bea3 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 13 Aug 2014 09:04:44 +0000 Subject: [PATCH] Do not include GIT repos of third-party libs to build --- src/gulpfile.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gulpfile.js b/src/gulpfile.js index 348e82c4..c258273e 100644 --- a/src/gulpfile.js +++ b/src/gulpfile.js @@ -173,8 +173,13 @@ gulp.task('generate-pot', function() { // Pack sources to .zip and .tar.gz archives. gulp.task('pack-sources', ['composer-install'], function() { - var sources = config.mibewPath + '/**/*', - version = config.package.version; + var sources = [ + config.mibewPath + '/**/*', + // Exclude Git repositories that can be shipped with third-party libs + '!' + config.phpVendorPath + '/**/.git', + '!' + config.phpVendorPath + '/**/.git/**/*' + ]; + var version = config.package.version; return eventStream.merge( gulp.src(sources, {dot: true})