Basename namesapce option for modules

This commit is contained in:
2015-08-02 18:56:58 +02:00
parent 3cd2541f7f
commit 44b46d8f5f
3 changed files with 40 additions and 19 deletions

View File

@@ -42,10 +42,11 @@ The modular constructor accept several settings :
path : [ 'app/module.js', 'app/module2.js', 'app/subfolder' ]
override : true, /* modules override already loaded modules in case of collision
default value : false */
namespace : 'namespace', /* namespace is appended before the deduced namespace */
namespace : 'namespace', /* specify the namespace of the module */
baseNamespace : 'base', /* base namespace appended to module namespace */
basePath : 'path/path2', /* the base path used to deduce the namespace of modules
default value : path value (when path is a directory) */
fullName : 'namespace.name',/* specify the full name of the module
name : 'name', /* specify the name of the module
Only when path is one file. Doesn't work with namespace setting */
liveReload : true, /* enable or disable liveReload on a file/folder basis
default value : false */