Skip to content

jinsley8/wp-gulp-child-theme

Repository files navigation

WP Gulp WordPress Child Theme

This child theme boilerplate streamlines development using a Gulp workflow to watch, concatenate, minify, and optimize files for production.

Requirements

Node.js: This child theme requires Node.js 20 or later to run Gulp.

Installation of Node.js

Use Node.js version 20.11.0 or higher.

To install Node.js, follow one of these methods:

  1. Using nvm:
nvm install node
  1. Using Homebrew:
brew install node

Download pre-built packages from the Node.js website for your particular Operating System.

Optional: Install Bun

Bun can be used as the package manager in replacement of npm to install packages up to 30x faster. Bun can be installed via curl, npm, or homebrew:

Getting Started

Installation

  1. Install the child theme into the WordPress theme directory at /wp-content/themes/.

  2. Navigate to the wp-gulp-child-theme directory:

  3. Choose a package manager to install dependencies:

With bun:

bun install

With npm:

npm install

Running Gulp

This child theme uses an automated tasks using gulp to watch and process files. Execute the script defined in its package.json:

npm run dev