This is the template build on top of the Sage Wordpress theme && Eric Barnes blog post.
Building the theme requires node.js and installed PHP server in order to support templating by Twig library.
From the command line:
- Clone the git repository to the local machine:
git clone git@github.com:pnowy/bimper.git bimper
- Install gulp and Bower globally with
npm install -g gulp bower
- Navigate to the theme directory, then run
npm install
- Run
bower install
You now have all the necessary dependencies to run the build process.
gulp
— Compile and optimize the files in your assets directorygulp watch
— Compile assets when file changes are madegulp --production
— Compile assets for production (no source maps).
To use BrowserSync during gulp watch
you need to update devUrl
at the bottom of assets/manifest.json
to reflect your local development hostname.
For example, if your local development URL looks like http://localhost:8888/project-name/
you would update the file to read:
...
"config": {
"devUrl": "http://localhost:8888/project-name/"
}
...
I suggest the XAMPP as PHP server. You will fine more about PHP templating on the Twig page.
The Twig library has been added directly to the repo in order to avoid the manual installation or by composer installation.