This is where I start with custom WP builds
- SASS CSS Pre-Processor
- Gulp For compiling minified CSS and JS
- Node (npm cli)
- Gulp (gulp cli)
- Clone Repo into your themes directory
- Open theme directory in Terminal
- Run
npm install
- Run
gulp sass
- Run
gulp js
Enqueue scripts in theme-enqueue.php
.
To add scripts to gulp task add them to the jsFileList array in gulpfile.js
Twitter Bootstrap is included, if you do not want bootstrap check out the no-bootstrap
branch
Customizing Bootstrap SASS
Open /assets/scss/_bootstrap-custom
and comment out any css you do not need for your build.
Customizing Bootstrap JS
Open gulfile.js
and comment out any JS files you do not need from the jsFileList
array.
gulp sass
- Minify CSSgulp js
- Concatenate & Minify JS