natecavanaugh/liferay-portal — pull request #566 by ipeychev (2012-03-01 17:30:23+00:00)
Title: LPS-25540 - Create list of AlloyUI modules dependencies

Hi Nate,

Here are a few things to note:
1. In order to get it work, you will have to copy version of Alloy which contains yesterday's patch (AUI-622) in Portal and run "ant deploy" or "ant all". It will generate "modules.json" in WEB-INF/classes.
2. By default this file is being generated using Rhino which is producing it a bit slow. If you have NodeJS installed, you may change an option in build.properties file - comment "javascript.engine=ringo" and uncomment the other 3 options related to NodeJS. On my computer this task is being executed with Rhino for ~7 secs and with Node for ~3 secs (and the real time is less than a second, to up Java process(es) is slow).
3. On the backend we are not caching the results yet, so we may optimize the speed even more.