toolness/friendlycode — pull request #112 by smagch (2012-06-24 09:32:50+00:00)
Title: Structured require dependency

Related to require build optimization issue.
https://github.com/mozilla/webpagemaker/issues/430

Nested require call going to make difficult to optimize. What I've done is that

make vendor libs require dependencies; jquery, underscore, backbone.
use require.js version 2.x; since version 2.x can handle vendor libs without plugin.
make less dependencies in main.js; move to module's dependencies if possible.
extract appReady from main to own file.
I'm going to write r.js build script from now.

NOTE: I forked friendlycode repo and don't use webpagemaker, because I've got a trouble with my network connection: I can't use git protocol! Terrible! I'm asking to my landlord if I can change port settings... :(