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

Related to require build optimization issue.

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

1. make vendor libs require dependencies; `jquery`, `underscore`, `backbone`.
2. use require.js version 2.x; since version 2.x can handle vendor libs without plugin.
3. make less dependencies in `main.js`; move to module's dependencies if possible.
4. 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... :(