Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 822 Bytes

configProcessor.md

File metadata and controls

33 lines (21 loc) · 822 Bytes

@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 config directory
  • writes JS files to the configured output directories
  • returns a ModelSpec that guides the rest of the sde build process

Parameters

Name Type
options ConfigProcessorOptions

Returns

fn

(buildContext): Promise<ModelSpec>

Parameters
Name Type
buildContext BuildContext
Returns

Promise<ModelSpec>