Guide
ModuleManager handles the configuration, initialization, and lifecycle management of modular applications.
This section provides conceptual guides to understanding and using the ModuleManager library effectively.
Overview
- Modules - Defining the components of your application.
- Configuration - How modules describe their dependencies and configurable properties.
- Dependency Injection - How modules receive references to other modules.
- Lifecycle Management - Choreography for the module graph.
- Internal Module Registration - Limiting module scope.
- Architecture - General discission of how the library works.
Examples
Complete working examples are available in the examples/ directory of the package:
hello-world.js- As simple as it gets: one module, one configurable property, one lifecycle handlerhello-world-advanced.js- Hello World, but with the functionality exploded into multiple moduleshello-world-complicated.js- Same thing, except without using automatic module resolutionlifecycle.js- Exploring the lifecycle of modules and their dependenciessecret.js- Using modules to implement commandszws.js- Using modules to implement a command hierarchyturtle.js- Leveraging deeper schema features with modules