Skip to content

Instantly share code, notes, and snippets.

@ambercouch
Last active June 8, 2021 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambercouch/8337d20c26e259d5fb76ff3369a022a4 to your computer and use it in GitHub Desktop.
Save ambercouch/8337d20c26e259d5fb76ff3369a022a4 to your computer and use it in GitHub Desktop.
#From the root of your wordpress install
#cd in to the theme folder
cd wp-content/themes/
#download ac timber
git clone git@github.com:ambercouch/ac_timber.git ac_timber
#Swich to the master branch or whatever branch you want to use
cd ac_timber
git checkout master
cp gulpfile.v4.example.js gulpfile.js
#edit the gulpfile.js with nano or any text editor
nano gulpfile.js
#On line one replace mysite.local with the local domain when you acess your wordpress instalation and save the file
[ctrl]+[o]
[enter]
[ctrl]+[x]
#Install the dependencies
npm install
#Use the gulp commands genorate the style sheets and scripts etc
gulp vendorStyles
gulp styles
gulp scripts
gulp svgdefs
#Use the gulp command serve to open browserSync and watch the scss and js files
gulp serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment