Build Script
noun
say it: “BILD skript” /ˈbɪld ˌskrɪpt/
A script kept with a project that runs its routine jobs, such as checking tools, building and publishing, the same way for everyone who works on it.
What is a build script?
A build script writes a project's chores down once, so nobody has to remember the steps. Each chore is a task, often a function of its own, and one parameter picks which task runs. A new teammate types one line instead of asking how the project is built.
.\build.ps1 -Task check # Found git, Found pwsh
.\build.ps1 -Task build # Built 3 files into dist
.\build.ps1 -Task clean # Removed dist
In a sentence
- “The bike shop's build script copies src into dist with one command: .\build.ps1 -Task build.”
- “A new teammate ran the build script instead of asking how the site is built.”
Level: Journeyman · More PowerShell terms at this level
Updated