UIZE JavaScript Framework

2012 NEWS 2012-12-18 - NEW MODULE: Uize.Build.ModuleInfo

The new Uize.Build.ModuleInfo module provides various methods for obtaining information about JavaScript modules.

The Uize.Build.ModuleInfo module is intended primarily for build processes that build JavaScript libraries / packages that contain all necessary dependency modules. Among other things, this module provides a means for performing package dependency tracing for modules.

1. Summary of Methods

The Uize.Build.ModuleInfo module provides the following methods...

1.1. Uize.Build.ModuleInfo.getDefinitionFromCode

Returns an object, representing the module definition for the module supplied in the specified module code string.

SYNTAX

moduleDefinitionOBJ = Uize.Build.ModuleInfo.getDefinitionFromCode (moduleCodeSTR);

1.2. Uize.Build.ModuleInfo.getDefinition

Returns an object, representing the module definition for the specified module.

SYNTAX

moduleDefinitionOBJ = Uize.Build.ModuleInfo.getDefinition (moduleNameSTR);

1.3. Uize.Build.ModuleInfo.getDirectDependencies

Returns an array, containing the names of all the modules that are declared as direct dependencies of the specified module.

SYNTAX

moduleNamesARRAY = Uize.Build.ModuleInfo.getDirectDependencies (moduleNameSTR);

The Uize.Build.ModuleInfo module is comprehensively documented. Consult the reference for more detailed information on its various methods and how they behave.