I have many js and css files. Is there any simple utility to compile them into two files?
util --input_dir=js/ --output=build.js
util --input_dir=css/ --output=build.css
On linux you can use simple shell script https://github.com/dfsq/compressJS.sh to combine multiple javascript files into the single one. It makes use of the Closure Compiler online service so the resulting script is also effectively compressed.
$ ./compressJS.sh some-script.js another-sctipt.js onemore.js
You can also see: https://github.com/eloone/mergejs.
Second approach is to load them in parallel using: http://yepnopejs.com/ or http://headjs.com