Do not include GIT repos of third-party libs to build

This commit is contained in:
Dmitriy Simushev 2014-08-13 09:04:44 +00:00
parent f583aa6439
commit 02874adbd0

View File

@ -173,8 +173,13 @@ gulp.task('generate-pot', function() {
// Pack sources to .zip and .tar.gz archives. // Pack sources to .zip and .tar.gz archives.
gulp.task('pack-sources', ['composer-install'], function() { gulp.task('pack-sources', ['composer-install'], function() {
var sources = config.mibewPath + '/**/*', var sources = [
version = config.package.version; 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( return eventStream.merge(
gulp.src(sources, {dot: true}) gulp.src(sources, {dot: true})