Is there a compiler for big javascript projects, I don't want to use coffeescript just plain javascript, but I want it to compile on the clientside, not server side or what ever.
So for example:
app.js
// Libs
include jquery.min.js
include underscore.min.js
include backbone.min.js
// Src
include src/homepage.js
And then in html we would only include app.js which automatically combines those libraries / source files. Same like LESS css.
Are there tools / projects to take care of this? Same story with html, which do include "header.php" and include "footer.php" when it's view logic, we want it on the client side.
Thanks
Take a look at something like headjs or if that's not to your liking then practically any JavaScript compressor will do.