Documentation: http://kevgo.github.com/modularity
The framework is in the file "modularity.js", unit tests are in the folder "spec".
The folder "demos" contains fully functional example modules to play with. They are described in http://kevgo.github.com/modularity.
The file "Rakefile" contains sample jobs to compress the demo files. Use it as a starting point for your own compiler jobs. The folder "compilation-tools" contains utility files for the Closure compiler.