Review: Forge, a Tool for Bootstrapping a WordPress Theme

Forge is a tool for quickly developing a WordPress theme built by the fine folks at The Theme Foundry.

Forge is a free command-line toolkit for bootstrapping and developing WordPress themes in a tidy environment using front-end languages like Sass, LESS, and CoffeeScript.

During the early development process of this year’s default theme for WordPress, the Twenty Twelve team—Drew Strojny and myself—used Github and Forge to build the theme (view the archived source).

I would like to share my thoughts on using Forge during this process now that the theme is back in the core WordPress environment: Subversion and Trac.

In summary: Forge is too restrictive for general theme develpoment.

This rapid theme development tool is much too rigid for my taste, as it requires themes to be developed the way that The Theme Foundry thinks is best—I’ve found that their exact methods don’t match with how core WordPress expects default themes to be formatted.

Biggest offenders directory naming and the exact CSS output. If it were a bit more configurable I’d consider it again in the future.

The restrictions things that stand out to me are as follows.

1. Can’t add add ad-hoc directories like /languages or /js

Andy Adams, the primary developer behind Forge says: “The only place to add new directories is within the /includes/ folder. Right now, there is no way to add any new root directories.”

2. Can’t rename the output directory names. In core we’d prefer to use /js instead of /javascripts, for example.

3. Can’t force the build to output an empty /images directory. There are times you’d like to commit an empty directory, either for future development or to show another theme developer how something could be used. Forge doesn’t build empty directories.

4. Can’t tell build to ignore something. With Twenty Twelve, for example, the /includes had some dev tools that Drew wanted for debugging, but I don’t want to see them after a build.

5. Not enough control over the SASS to CSS process.

Drew and Andy both said to look at Compass documentation, but after a few hours digging around I couldn’t figure this out. I’d like to take the output from the .scss files and make it match the WP coding standards. For example, tabs instead of spaces and more control over the spacing of closing braces.

Overall, I didn’t find that using Forge sped up development, it instead added overhead because of the renaming tasks after merging back to the canonical core theme code, adding empty directories back in, and the CSS cleanup steps needed.

In my experience, the fastest theme development comes with using a great starting theme like _s rather than a theme compiler tool.

On that note—check out Underscores.me—we have a tool there for quickly bootstrapping _s for your next theme project. It handles the renaming steps to get you going, then leaves the rest to you to code as you wish, forging ahead with no restrictions.

AUTHOR & TAGS

9 responses to “Review: Forge, a Tool for Bootstrapping a WordPress Theme”

  1. Windo Avatar

    Interesting, am in the middle of converting HTML to WordPress for my blog. Will definitely take a look at underscores. Am a newb theme developer though. 😀

    Like

    1. Lance Willett Avatar

      _s sounds like a great match for you, then.

      Like

  2. […] Stewart tweeted a retrospect on using forge while developing the new default WordPress theme […]

    Like

  3. Andy Adams Avatar

    Thanks for the write-up, Lance.

    I think Forge is meant to serve a different purpose than you were using it for. Trying to map Forge output into a pre-existing layout is not really using Forge for its strengths. Forge removes those decisions for you, so you can focus on using Sass and LESS (which we think are massive productivity boosters).

    If directory naming and CSS formatting are an important part of your project, Forge is probably not the best tool. But if using CSS preprocessing is something you find valuable, I don’t know of an easier way to build a theme than with Forge.

    Like

    1. Lance Willett Avatar

      I don’t know of an easier way to build a theme than with Forge.

      Two other tools I’ve heard mentioned a lot, for a similar purpose, are Bones and CodeKit — have you looked at either of those two?

      I agree Forge is not the best tool for my workflow — it was interesting to use it along with Drew for early Twenty Twelve development, though.

      Like

  4. Ünsal Korkmaz Avatar

    You said “we have a tool there for quickly bootstrapping _s for your next theme project.”
    Where is it? Am i missing something?

    Like

    1. Lance Willett Avatar

      It lives at underscores.me now.

      Like

      1. unsalkorkmaz Avatar

        i think i missunderstand it. I was looking a quick way to add http://twitter.github.com/bootstrap/ on underscores theme

        Like

      2. Ünsal Korkmaz Avatar

        2 months passed and i decided to write a bootstrap theme and here is result: http://theme.firmasite.com/
        I hope you can review theme if you have time 🙂

        Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.