I've created a fork of YUI Compressor that will be integrated into a future official version. It makes YUI Compressor more friendly to build systems.
The code you're about to use and these instructions come with absolutely no warranty. See the [LICENSE][] file for details.
Even though I'm on the YUI team, this is not yet a part of the official YUI project. It comes with zero support. This may break your builds and set fire to your office.