I have a two different javascript files that I am using with my GAE Python app, and each of these depend on common functionality that I don't want to repeat in two different places.
In my development environment, I'd like to have three files:
- script1.js
- script2.js
- library.js
where each of script1.js and script2.js need functionality in library.js.
My javascript uses the "revealing module pattern", e.g.,
var my_module = (function() {
    var my = {};
    my.do_stuff = function() {...};
    return my;
})();
But in production, I want clients to be able to download one static file that has all needed javascript.  For example a client could download script1all.js that will include script1.js and library.js.
How can I implement this in GAE/P? Is there an existing tool that does this?
I've been reading about javascript package managers (npm, bower, etc), but these seem related to handling third party javascript, where I just need to package my own javascript.
 
    