WpScaffold

Scaffold commands for Wordpress theme development.

THIS IS A WORK IN PROGRESS AND IS NOT READY FOR ACTIVE THEME DEVELOPMENT.

Installation

$ gem install wp_scaffold

Usage

To create a new theme, navigate to your wp-content/themes directory and type:

wp new "theme name"

cd theme_name

To create a custom post type:

wp cpt "Post Type Name"

Make sure that your custom post type name is singular; wp_scaffold with take care of pluralizing it for you.

Customization

Every developer seems to have their own way of setting up a WP project. If you would like to use your own template files, copy down the lib/wp_scaffold/templates directory to use as a guide. You can insert the Theme (or custom post type) name using Ruby's ERB templating.

Once you have your templates ready to go, open terminal and type wp set_template_path path/to/your/templates (the path should be relative to your User's home folder). wp_scaffold will now use your custom templates, rather than the defaults.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request