@Plugin class with optional context extension for adding properties like this.myFeature to all execution contexts.
Usage
Options
| Option | Type | Default | Description |
|---|---|---|---|
name | string | — | Required. The name of the plugin |
project | string | — | Required. The project to add the plugin to |
withContextExtension | boolean | false | Generate a context extension file |
directory | string | — | Subdirectory within src/plugins/ |
Generated Files
Generated Code
audit.plugin.ts
Context Extension (optional)
When--withContextExtension is used, a second file provides module augmentation and runtime prototype extension:
audit.context-extension.ts
this.audit after the plugin is registered.