Skip to main content

@backstage/plugin-scaffolder-node

Home > @backstage/plugin-scaffolder-node

The scaffolder-node module for @backstage/plugin-scaffolder-backend.

Functions

FunctionDescription
addFiles(options)
cloneRepo(options)
commitAndPushBranch(options)
commitAndPushRepo(input)
createBranch(options)
deserializeDirectoryContents(targetPath, files)

Deserializes a list of serialized files into the target directory.

This method uses resolveSafeChildPath to make sure that files are not written outside of the target directory.

executeShellCommand(options)Run a command in a sub-process, normally a shell command.
fetchContents(options)A helper function that reads the contents of a directory from the given URL. Can be used in your own actions, and also used behind fetch:template and fetch:plain
fetchFile(options)A helper function that reads the content of a single file from the given URL. Can be used in your own actions, and also used behind fetch:plain:file
initRepoAndPush(input)
serializeDirectoryContents(sourcePath, options)

Interfaces

InterfaceDescription
SerializedFile
TaskBrokerTaskBroker
TaskContextTask

Variables

VariableDescription
createTemplateActionThis function is used to create new template actions to get type safety. Will convert zod schemas to json schemas for use throughout the system.
getRepoSourceDirectory
parseRepoUrl

Type Aliases

Type AliasDescription
ActionContextActionContext is passed into scaffolder actions.
ExecuteShellCommandOptionsOptions for executeShellCommand().
SerializedTaskSerializedTask
SerializedTaskEventSerializedTaskEvent
TaskBrokerDispatchOptionsThe options passed to TaskBroker.dispatch() Currently a spec and optional secrets
TaskBrokerDispatchResultThe result of TaskBroker.dispatch()
TaskCompletionStateThe state of a completed task.
TaskEventTypeTaskEventType
TaskSecretsTaskSecrets
TaskStatusThe status of each step of the Task
TemplateAction
TemplateActionOptions
TemplateExample
TemplateFilter
TemplateGlobal