YellLabs/yellfabric — pull request #3 by MattCottingham (2012-07-19 11:37:02+00:00)
Title: Add local build command for static deployments

In order to locally build javascript modules before rsyncing, a create_custom_command function has been added to static.py.

Currently this is focused on invoking require.js (which requires a local installation of node.js). It uses a closure so parameters from the fabfile, and env.tempdir can be provided from different contexts.

No errors are handled from local() as the deploy should fail in this case.

As discussed, fetch_render_copy is getting a little out of hand and performs too many functions -- an issue will be created to discuss refactoring this.