Setting up a development environment for Sage Starter WordPress theme.
I have been using the roots classing theme and have recently started to use the new Sage version. Here I will explain how I setup my development environment to use node.js with gulp and bower dependencies. I have set this up on both OSX and Windows, hopefully the below will cover both.
Some basic commands in dos/terminal will be needed:
Python 2.7 (already on OSX)
On Windows using Node.js Command Prompt or on OSX using terminal;
Clone the git repo to a folder in your wordpress theme folder
git clone https://github.com/roots/sage.git theme
open wp-config.php and add
cd to theme folder and install gulp and bower
npm install -g gulp bower
install node dependencies
install bower dependencies
running gulp will compile and optimize the file for the first time
See the Sage docs for further reading