SignalR/SignalR — pull request #489 by hamishcrittenden (2012-06-27 03:48:00+00:00)
Title: Adds AMD compliant define wrapper at top and bottom of output hubs file for inclusion in RequreJS-ified client scripts.

Adds AMD compliant define wrapper at top and bottom of output hubs file for inclusion in RequreJS-ified client scripts.

Usage for default AMD alias of'signalr' -> hubify.exe /o:[path_to_output_file]\hubs.js /amd will wrap the js file with this:
define(['jquery', 'signalr'], function () {
//// hubs script output
});

Usage for custom AMD alias -> hubify.exe /o:[path_to_output_file]\hubs.js /amd:[aliasName] will wrap the js file with this:
define(['jquery', 'aliasName'], function () {
//// hubs script output
});

This is then allows for signalR to be set up with RequireJS.