Yeoman generator for Zurb Foundation based project


This is a basic generator that's based on the 'quickstart' project but uses Zurb Foundation by default.

At the moment, you will need the zurb-foundation compass gem installed. Visit the foundation documentation for detailed directions on installation. If you already have your ruby environment setup, essentially, all you need to do for installation is:

[sudo] gem install zurb-foundation

Copy the foundation folder to your yeoman generators folder for now. (e.g. [YOUR YEOMAN INSTALL]/yeoman/cli/node_modules/yeoman-generators/lib/generators). In a *nix/Mac OS environment the path should be /usr/local/lib/node_modules/yeoman/node_modules/yeoman-generators/lib/generators

[sudo] cp -r foundation /usr/local/lib/node_modules/yeoman/node_modules/yeoman-generators/lib/generators/foundation/

After copying to your global generator location, use yeoman init foundation to generate the basic scaffolding for a foundation based project.

I have also modified this generator to use require.js to load javascript modules. After generating the project scaffolding a node child_process will run to install jQuery, Backbone, and Require.js along with any dependencies.

yeoman install jquery backbone requirejs --save

  • Icons sometimes don't render. I think it's a caching thing or something. Looking into it.
  • Reduce dependece on the Foundation for Compass Ruby gem. (Currently you need to have it installed in order to use this generator.)