Details
Description
The Javascript community is split between CommonJS[1] and AMD[2] (and perhaps other) "standards" for module loading. AMD was developed specifically[3] to address deficiencies that CommonJS has in browser-based environments. Since DynJS will be exclusively server-side, it makes sense to use the CommonJS standard - at least initially. Also, Node[3] uses a CommonJS approach to module loading. If we want Node parity, we'll need to support it anyway.
Module pattern: http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
CommonJS specs: https://github.com/commonjs/commonjs/
[1] http://wiki.commonjs.org/wiki/CommonJS
[2] http://requirejs.org/
[3] http://requirejs.org/docs/whyamd.html
Issue Links
- depends upon
-
DYNJS-42
Support load search paths for Node and NPM
-
For node.js parity