playframework/Play20 — pull request #63 by jackcviers (2012-01-03 18:46:34+00:00)
Title: Play ticket75

Fix for Play 2.0 Ticket 75 Coffescript generated javascripts not parsed by Google Closure Compiler:

https://play.lighthouseapp.com/projects/82401/tickets/75

### Description ###
Coffescript generated javascript files are not parsed by the google closure compiler. A require statement in the Coffeescript does not include the necessary code from required scripts. This pull request fixes the issue by writing the Coffeescript generated javascript to the IO.temporaryDirectory, copying all JS files in the assets/javascripts src folder into the IO.temporaryDirectory, and passing the Coffescript generated javascript file in the IO.temporaryDirectory to the play *jscompile.JavascriptCompiler. The source generated by the JavascriptCompiler is then returned as the generated js from the Coffeescript.

### Remaining Issues ###
This pull request merely passes the Coffeescript generated javascript to the Google Closure Compiler. It does not fix play ticket 45 (https://play.lighthouseapp.com/projects/82401/tickets/75).
This pull request does not fix the issue that Coffeescript generated javascript files can not require other Coffeescript generated javascript files.