You'll need to use some sort of a script to get a list of all the .js files, and then runs the YUI Compressor on all of them. On the windows command prompt, something like this should work:
FOR %f IN (*.js) DO java -jar yuicompressor.jar %f -o deploy\%f