Skip to content
BENIBIX Learn

Build (Software)

Development☁️ DevOps & CloudDevOps Basics

Also known as Software Build, Build Step, Build Process, npm run build

The step that turns source code into files that can run or be shipped.

Think of it like

Think of it like baking. You start with flour and eggs, and you end with a cake you can serve.

Example

Lucy runs npm run build on her web app. Two hundred source files become three small files in a dist folder, ready to put on a server.

Why it matters

Users never run your source files. They run what the build made, so the build is what ships.

Definition

A build turns source code into something that can run or be shipped. It may compile the code, join many files into a few, shrink them and copy in images. The result lands in a folder such as dist or build. A build should give the same result every time from the same code. Build tools and scripts run it with one command, like npm run build.

Example code

console
$ npm run build
> vite build
✓ built in 2.41s
One command turns the source into files ready to ship.

Common mistake

Building on your own laptop and copying the files up by hand. Let a clean machine build it the same way each time.

Key takeaways

  1. 1
    Source in, files out. Ready to run or ship.
  2. 2
    Same every time. Same code, same result.
  3. 3
    One command. Anyone can run it.