ff0000/red-boilerplate — pull request #17 by doctyper (2013-02-05 01:07:26+00:00)
Title: Reorganizing Static Files

This pull request deals with restructuring the updated static files. To recap:

##### Static Folder
- `project/static` is now ignored in version control. Nothing in this folder may be committed. It is a catch-all for compiled static output, nothing more.
- `project/static` has moved to `project/source`

##### Resources Folder
- The `resources` folder is no more
- `resources/compass/scss` has moved to `project/source/scss`
- `resources/compass/gems` has moved to `.bundle/gems`

To accommodate the reorganization, some features have been introduced across RBP. You should probably take the time to read this, it will affect your project:

##### Caboose Changes
- Caboose compiles as usual (`grunt compass:dev`).
- Sprites are now compiled to `project/static/img`, leaving the `source` directory in pristine condition.
- For interoperability purposes, compiled sprites **must be saved to `project/source/img/sprites`**.

##### Rosy Changes
- `project/static/js` has moved to `project/source/js`

##### Image Changes
- `project/static/img` has moved to `project/source/img`
- `grunt build:img` will now copy images into the static directory and optimize them. Note that this functionality requires additional binaries to be installed, mainly `optipng` and `jpegtran`. RED Boilerplate will warn you about this on install.

##### New Functionality
- `grunt copy` will copy anything else you require from `project/source/*` into `project/static/*`. Because this will probably be customized in a project-per-project basis, you can access and customize this task inside of your local `robyn/tasks/copy.js`. It's very extensible, and can actually copy any folder anywhere.

##### Misc
- Since we can now safely ignore `project/static`, RBP is no longer ignoring *.css, *.min.js specifically.
- I've removed `test` folders from Caboose and Rosy. These just served to clutter projects and are only useful in their proper repositories.
- Updated Modernizr to ignore more expensive folders.
- Updates some fringe cases when checking system dependencies.

##### tl;dr
![#will](https://s3.amazonaws.com/static.tumblr.com/cxkcond/q6lmde6lh/dogface.gif)