Skip to main content

ExecPluginOptions

Configuration options for the exec plugin.

Properties

PropertyTypeDescription

exec

string | (ctx) => void | Promise<void>

Command to execute - can be either:

  • A string command to be executed via shell
  • A function that receives the generator context

actionName?

string

Action name displayed in the generation status. Shows as "Generating {actionName}..."

name?

string

Plugin name displayed in logs

skip?

(ctx) => boolean | Promise<boolean>

Optional function to determine if execution should be skipped

watch?

GeneratorPluginV1WatchOptions

File watching configuration