Skip to content

Modulize#343

Merged
Pita merged 24 commits intoether:masterfrom
cweider:modulize
Jan 22, 2012
Merged

Modulize#343
Pita merged 24 commits intoether:masterfrom
cweider:modulize

Conversation

@cweider
Copy link
Copy Markdown
Contributor

@cweider cweider commented Jan 20, 2012

Here is a batch of changes isolating each file in its own module using the CommonJS convention. This sets the stage for significant amounts of code sharing amongst the client and server, which started as 1cec6227b1ca44fce036df59e1f1bc602dbc33c7, but is now branch.

This particular patch aims to be as unobtrusive as possible. The hope is that, with the explicit dependencies and interfaces enforced for each file, changes to the application will be both easier, less dangerous, and more testable than they are now.

@JohnMcLear
Copy link
Copy Markdown
Member

Will let @Pita handle this pull request. Looks good to me, happy to test if required. Good work!

@cweider cweider mentioned this pull request Jan 20, 2012
@cweider
Copy link
Copy Markdown
Contributor Author

cweider commented Jan 20, 2012

On second thought, it would maybe be simpler to pull #344, which contains the first 9 commits, first. That branch contains all the generally useful changes and will reduce the size and complexity of this merge.

The jQuery library does not need to be compressed; it is compressed as a consequence of being included in `pad.js`.
Default to 'node-js' only if no user agent can be found the normal way.
In the case that it is not defined, the configuration is `undefined`.
This allows the preprocessing that will restrict scope of files to be done once in Minify.
When dependencies are made explicity `pad_savedrevs.js` will be required by several of the `pad_*.js`.
Create a lazily-defined local reference for pad on initialization in each pad module in order to avoid circular dependency. At some point in the future this dependency should instead be injected into each module on initialization.
Pita added a commit that referenced this pull request Jan 22, 2012
@Pita Pita merged commit 947d53e into ether:master Jan 22, 2012
@cweider cweider mentioned this pull request Jan 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants