@@ -0,0 +1,1074 @@
+package com.semperos.screwdriver.js;%0A%0Aimport java.util.HashMap;%0A%0A/**%0A * @todo Steps needed:%0A *   * Create generic %7B@link org.mozilla.javascript.ScriptableObject%7D class to handle%0A *     properties used for RequireJS optimizer's config (see hardcoded-build.js).%0A *   * For each needed build (determined by user-provided list of main JS modules to target),%0A *     create unique instance of that object and set it's data accordingly (i.e., change values%0A *     based on the config needs for each main JS module)%0A *   * Add those objects to an array, say of __Screwdriver.rjsMainModules, which can then%0A *     be iterated through in the evaluated JavaScript and passed to requirejs.optimize%0A */%0Apublic class RequireJsConfigCompiler extends RhinoCompiler %7B%0A    private RhinoCompiler rhinoCompiler;%0A%0A    public RequireJsConfigCompiler() %7B%0A        rhinoCompiler = new RhinoCompiler();%0A        HashMap%3CString,String%3E deps = new HashMap%3CString,String%3E();%0A        deps.put(%22r.js%22, %22com/semperos/screwdriver/js/vendor/r-2.1.4.js%22);%0A        rhinoCompiler.addDependencies(deps);%0A    %7D%0A%0A%7D%0A

Add initial code for r.js via Rhino, include comments for next steps