Function: configProcessor
June 17, 2023 ยท View on GitHub
@sdeverywhere/plugin-config / configProcessor
Function: configProcessor
configProcessor(options): (buildContext: BuildContext) => Promise<ModelSpec>
Returns a function that can be passed as the modelSpec function for the SDEverywhere
UserConfig. The returned function:
- reads CSV files from a
configdirectory - writes JS files to the configured output directories
- returns a
ModelSpecthat guides the rest of thesdebuild process
Parameters
| Name | Type |
|---|---|
options | ConfigProcessorOptions |
Returns
fn
(buildContext): Promise<ModelSpec>
Parameters
| Name | Type |
|---|---|
buildContext | BuildContext |
Returns
Promise<ModelSpec>