Build a ModularJS package starting with a main module and consolidating all required modules into a single file.