component/builder.js — pull request #16 by nickjackson (2012-09-29 00:51:39+00:00)
Title: adding support for component scripts by assigning correct Aliases.

Aliases were pointing to index.js files that weren't registered for each script inside component.json

Now any scripts in component.json will be registered under their path and appropriate aliases are set up.

A default index.js alias is setup to the 'main' script in components.json. If there is no main script set, it will use index.js from the scripts array. If no index.js is specified, it will choose the first item in the scripts array as index.js whilst retaining its own path alias.

Pretty sure this gonna do what I want for my project so thought I would share. I would appreciate any thoughts.