Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1 KB

index.md

File metadata and controls

43 lines (32 loc) · 1 KB

@sdeverywhere/build

Configuration

The build function expects either:

  • a UserConfig object, or
  • a path to an sde.config.js file that exports a config function returning a UserConfig object

Example sde.config.js file:

export async function config() {
  return {
    modelFiles: ['example.mdl'],
    modelSpec: async () => {
      return {
        inputs: [{ varName: 'Y', defaultValue: 0, minValue: -10, maxValue: 10 }],
        outputs: [{ varName: 'Z' }]
      }
    }
  }
}

Build API

ModelSpec API

Plugin API