Module development
Build a module, expose its contract, test its behavior, and make it discoverable.
Build and test a module locally before you publish it. A module can consume existing interfaces without declaring an interface of its own.
From local code to a reusable module
- Create and load it. Scaffold a module, configure its build command, and watch its lifecycle in a project.
- Define its boundary. Export an interface only for the behavior that other modules need to call.
- Check the contract. Test through the public interface, and load each provider of an external dependency explicitly.
- Make it discoverable. Publish the package. If you want the CLI to find it, add registry metadata. The registry does not host code.
Development reference
Creating a module
Create a module from a template, read its directory structure, configure the entry point, and register it in your project.
Exporting interfaces
Define interface contracts with InterfaceFunction, EventProxy, and RegisteringProxy, then connect them to implementations.