@baeta/plugin-autoload
Interfaces
AutoloadModuleOptions
Properties
Property | Type | Description |
---|---|---|
|
( |
Custom function to determine if a module should be included |
AutoloadPluginOptions
Properties
Property | Type | Default value | Description |
---|---|---|---|
|
|
|
Configuration for module autoloading. Set to false to disable |
|
|
|
Output path for the generated autoload file |
|
|
|
Configuration for resolver autoloading. Set to false to disable |
AutoloadResolverOptions
Properties
Property | Type | Description |
---|---|---|
|
|
If true, disables the default resolver suffixes |
|
( |
Custom function to determine if a resolver file should be included |
|
|
Custom suffix(es) to identify resolver files Used together with the default suffixes, unless disabled |
Functions
autoloadPlugin()
autoloadPlugin(
options
?):GeneratorPluginV1
<unknown
>
A plugin that automatically loads GraphQL resolvers and modules based on file names. See https://baeta.io/docs/plugins/autoloading
Parameters
Parameter | Type | Description |
---|---|---|
|
Configuration options for the autoload plugin |
Returns
GeneratorPluginV1
<unknown
>
A Baeta generator plugin