Steps
Automating actions with Steps
Steps
Steps define actions that occur after the file generation is complete. They are executed in the order defined in skela.yaml.
# Common Fields
All steps support the following fields:
| Field | Type | Description |
|---|---|---|
kind | string | Required. The type of step. |
if | string | Condition to check before running the step. |
before | string | Message to print before the step runs. |
success | string | Message to print on success. |
pending | string | Message to show specifically during spinner execution. |
# Step Kinds
# command
Runs an arbitrary shell command.
- kind: command
command: "echo 'Hello World'"
silent: false # Set to true to hide output
# print
Prints a message to the console. useful for final instructions.
- kind: print
message: "Run 'npm start' to begin!"
# git-init
Initializes a new Git repository in the target directory.
- kind: git-init
# go-tidy
Runs go mod tidy to download dependencies.
- kind: go-tidy
# node-install
Installs Node.js dependencies using the detected package manager (npm, pnpm, yarn, bun).
- kind: node-install