My boilerplate solution do developing a flexible WordPress child theme leveraging GeneratePress as a parent theme. Recommended for developing locally, then uploading the built files.
Make sure you have a parent theme as well (this is child theme of GeneratePress)
Clone the project into the themes folder of your WordPress install.
git clone https://github.com/LyleBennett/child-theme-boilerplate.git
Go to the project directory
cd child-theme-boilerplate
Install dependencies
npm install
npm install --global gulp-cli
Start the compiler
gulp
- Can use scss which is compiled into style.css and editor-styles.css
- The theme js is also minified, can create multiple js files which will be concatenated and minified into 1 js file which is enqued and localized for wp-ajax requests.
- Works with GeneratePress, change "Template" in style.scss to the name of your parent theme if needed.