Skip to content

@saflib/workflows


Function: copyTemplateStateComposer()

copyTemplateStateComposer(options): XStateMachineStates

Composer for copying template files to a target directory. Also replaces every instance "template-file", "template_file", "TemplateFile", and "templateFile" with the name of the thing being created, passed in via the CLI or other interface. To use this composer, the machine context must extend TemplateWorkflowContext.

Parameters

ParameterType
optionsComposerFunctionOptions

Returns

XStateMachineStates