I am looking into building release scripts for the codebase when moving from a development platform to a production platform. I believe i have decided on running ant to send the javascript and css through the Google closure compiler.
I want to end up building the script to both compile out debug statements as explained Exclude debug JavaScript code during minification
Minify, and concatenate all the javascript into one file. Only one part of the process i am really confused about, how would i structure my .html file to include the javascript files separately, then run it through a script and now have the .html include the new 1 javascript file?
I am considering have 1 js file that points to all the other javascript files, and just include that one, then when its concatenated, concatenate all the files to that previous js file that pointed to the others.
Any suggestions on the general process would be appreciated on building release scripts to prepare javascript for public usage.