gulp.task('php', function (done) { syncy( [`${config.development_path}/**/*.php`], `${config.tmp_path}/wordpress/wp-content/themes/${config.theme_path}`, { verbose: true, base: config.development_path, ignoreInDest: '!**/*.php' } ) .then(() => { done(); }) .catch(err => { done(err); }); });
gulp.task('sync', function() { syncy(['.htaccess', './bower_components/**', './css/**', './favicons/**', './img/**', './js/**', '*.html', 'robots.txt', './sounds/**'], 'dist', { updateAndDelete: true, }).on('error', console.error).end(); });
gulp.task('sync-assets', function() { return syncy(['src/assets/**/*'], out.assets, { base: 'src/assets' }) .on('error', console.error) .end(); });