Wordpress Generator - a Yeoman generator for local WordPress installs
To use the generator, you will need to have Node installed.
You will also need to install Yeoman, by doing the following:
$ npm install -g yo
To install generator-relish-wordpress from npm, run:
$ npm install -g generator-relish-wordpress
Finally, initiate the generator:
$ yo relish-wordpress
- Asks you a few questions about your project
- Asks if you'd like to create a wp-config file and if so, asks you for relevant variable names
- Fetches the latest version of WordPress from wordpress.org
- Adds common plugins we use to build all our sites
- Grabs an empty theme, based on _s
- Edits the functions.php file, adding some commonly used functions, and removing some stuff we don't need
- Downloads Bootstrap 3 (.less) and FontAwesome
- Copies the Bootstrap variables.less file to the theme's css folder for overrides
- Copies the FontAwesome fonts folder to the theme's fonts folder
- Loads in come commonly used JS plugins.
- Creates a sample main.js file
- Sets up the Gruntfile.js in the theme folder to make this all work!
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.