2018-11-03 18:15:52 +03:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
|
|
* @copyright Copyright (c) 2013 - 2018, Alex Tselegidis
|
|
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link http://easyappointments.org
|
|
|
|
* @since v1.4.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
const del = require('del');
|
|
|
|
|
|
|
|
/**
|
2018-11-10 17:13:36 +03:00
|
|
|
* Install and copy the required files from the "vendor" directory.
|
2018-11-03 18:15:52 +03:00
|
|
|
*
|
|
|
|
* Composer needs to be installed and configured in order for this command to
|
|
|
|
* work properly.
|
|
|
|
*/
|
|
|
|
module.exports = (gulp, plugins) => {
|
|
|
|
return () => {
|
|
|
|
del.sync([
|
|
|
|
'./src/vendor/**/*',
|
|
|
|
'!./src/vendor/index.html'
|
|
|
|
]);
|
|
|
|
|
|
|
|
return gulp.src([
|
|
|
|
'vendor/**/*',
|
2019-06-08 17:08:29 +03:00
|
|
|
'!vendor/**/{demo,docs,doc,fixtures,examples,test,tests,extras,language,license,LICENSE}{,/**}',
|
2018-11-03 18:15:52 +03:00
|
|
|
'!vendor/**/{composer.json,composer.lock,.gitignore}',
|
2018-11-10 11:29:00 +03:00
|
|
|
'!vendor/**/{*.yml,*.xml,*.md,*phpunit*,*.mdown}',
|
2018-11-03 18:15:52 +03:00
|
|
|
'!vendor/bin{,/**}',
|
|
|
|
'!vendor/codeigniter{,/**}',
|
|
|
|
'!vendor/doctrine{,/**}',
|
|
|
|
'!vendor/phpdocumentor{,/**}',
|
|
|
|
'!vendor/phpspec{,/**}',
|
|
|
|
'!vendor/phpunit{,/**}',
|
|
|
|
'!vendor/sebastian{,/**}',
|
|
|
|
'!vendor/symfony{,/**}',
|
2018-11-10 11:29:00 +03:00
|
|
|
'!vendor/phar-io{,/**}',
|
2018-11-03 18:15:52 +03:00
|
|
|
'!vendor/webmozart{,/**}'
|
|
|
|
])
|
|
|
|
.pipe(gulp.dest('./src/vendor/'));
|
|
|
|
};
|
|
|
|
};
|