wp-themes-gulp

Common gulp tasks for compiling assets for WP themes

Usage no npm install needed!

<script type="module">
  import wpThemesGulp from 'https://cdn.skypack.dev/wp-themes-gulp';
</script>

README

WP Themes Gulp

Common gulp tasks for compiling assets for WP themes.

Example usage in gulpfile.js:

const wpThemesGulp = require('wp-themes-gulp');

const gulpTasks = wpThemesGulp({
  root: '../',
  source: {
    root: '/src/',
    scss: '/scss/',
    js: '/js/',
    libs: [
      '/node_modules/anylib/dist/anylib.min.js'
    ]
  },
  build: {
    root: '/assets/',
    css: '/css/',
    js: '/js/'
  }
});

module.exports = gulpTasks;