Scala Build Tool
Most build tools have plugins for this, whether you’re using SBT, Maven, or Gradle. I’m an SBT user, so I’ve been using sbt-closure and less-sbt. However, these are extremely slow, the SBT plugins, that is. I haven’t used the other build tools. Also, it’s not necessary to run google closure every time a change is made. This really only needs to be done once, when packaging for deployment.
This is a sbt plugin along with a snippet to be used in your Lift app. It allows you to define bundles of files, which the snippet either loads indvidually or as a single file, depending on whether you’re in development or production mode. The only problem I had with this was that I use Twitter Bootstrap’s less source files and there isn’t a way to specify a single file to process. It only has a directory setting. So it processes all of the less files instead of only the single file that I need processed.
See the app’s Gruntfile.js for more details.
This is currently my preferred tool to use. The only problem I’ve run into is that I use SBT to generate a package.json file that is used by Grunt to create the files. Sometimes, the two can get out of sync.