Constructor
new PluginResolver(cwdopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
cwd | string | <optional> | process.cwd() | Working directory for resolution |
- Source
Members
cache :Map.<string, Plugin>
Type:
- Map.<string, Plugin>
- Source
registry :PluginRegistry|null
Type:
- PluginRegistry |
null
- Source
Methods
discoverAll() → {PluginRegistry}
Discovers all available plugins from all sources.
- Source
Returns:
- Type:
- PluginRegistry
filterByDetection(context) → {Array.<Plugin>}
Filters plugins by detection context (framework, libraries detected).
Parameters:
| Name | Type | Description |
|---|---|---|
context | DetectionContext |
- Source
Returns:
- Type:
- Array.<Plugin>
getByName(name) → {Plugin|undefined}
Parameters:
| Name | Type | Description |
|---|---|---|
name | string |
- Source
Returns:
- Type:
- Plugin |
undefined
getByType(type) → {Array.<Plugin>}
Parameters:
| Name | Type | Description |
|---|---|---|
type | 'parser' | |
- Source
Returns:
- Type:
- Array.<Plugin>
loadFromConfig(configopt) → {Object}
Loads plugins from configuration with defaults.
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | <optional> | {} | Properties
|
- Source
Returns:
- Type:
- Object
resolve(identifier) → {Plugin|null}
Resolves a plugin by identifier (name, path, or npm package).
Parameters:
| Name | Type | Description |
|---|---|---|
identifier | string | Plugin identifier |
- Source
Returns:
- Type:
- Plugin |
null