@sdeverywhere/plugin-config / 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 thesde
build process
Name | Type |
---|---|
options |
ConfigProcessorOptions |
fn
(buildContext
): Promise
<ModelSpec
>
Name | Type |
---|---|
buildContext |
BuildContext |
Promise
<ModelSpec
>