This is a starter child theme that includes a variety of workflows for local, staging, and production environments. It's lightweight and fast with tasks running in milliseconds.
- ES6 support
- Bootstrap Media Queries (Optional)
- Yarn package manager
- Gulp workflow
- Support for multiple environments
- Optional Google Fonts, loaded asynchronously
- BrowserSync: injecting CSS, reloading on PHP file changes
- Clone this into your themes folder
- Run
yarn
- In style.css, update to your info
- In gulpfile.js, change
server
variable to your local vhost (line 27) - In functions.php, if needed, change parent styles destination (line 21)
Make sure to define your environment. Line 3 of functions.php attempts to automatically do this, but it won't work on production if you don't give a global ENV variable.
gulp
: run browsersync and watch src filesgulp build
: compile production assetsgulp dist
: compile production assets