appBox
It lets you store all your modules into one global. It supports lazy-loading or full-loading.
- License: MIT
- Current status: alpha / unstable
- Platform: Node.js only
Full BDD spec generated by Mocha:
[appBox] Loading module: /home/cedric/inside/github/appbox/test/core/hello.js [appBox] Loading module: /home/cedric/inside/github/appbox/test/core/bonjour.js [appBox] Loading module: /home/cedric/inside/github/appbox/test/circular/one.js [appBox] Loading module: /home/cedric/inside/github/appbox/test/circular/two.js [appBox] Lazy-loading module: /home/cedric/inside/github/appbox/test/core/hello.js [appBox] Lazy-loading module: /home/cedric/inside/github/appbox/test/core/bonjour.js [appBox] Lazy-loading module: /home/cedric/inside/github/appbox/test/circular/one.js [appBox] Lazy-loading module: /home/cedric/inside/github/appbox/test/circular/two.js
TOC
Loading all module from the map file
with full-loading.
delete globalAPP ;appBox ; // Ensure the module is already loadedvar descriptor = Object ;tobe ;to ; to ;to ;to ;to ;to ;
with lazy-loading.
delete globalAPP ;appBox ; // Ensure the module is *NOT* loadedvar descriptor = Object ;to ;tobe ; to ;to ;to ;to ;to ;to ;to ;to ; // Ensure the module is now loadeddescriptor = Object ;tobe ;to ;