Esempio n. 1
0
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);
    });
});
Esempio n. 2
0
gulp.task('sync', function() {
    syncy(['.htaccess', './bower_components/**', './css/**', './favicons/**', './img/**', './js/**', '*.html', 'robots.txt', './sounds/**'], 'dist', {
        updateAndDelete: true,
    }).on('error', console.error).end();
});
Esempio n. 3
0
gulp.task('sync-assets', function() {
    return syncy(['src/assets/**/*'], out.assets, { base: 'src/assets' })
        .on('error', console.error)
        .end();
});