A build system coordinates frontend tasks that transform project files for use or delivery. Build steps can bundle code for production, transpile newer JavaScript for older browsers, or combine HTML snippets. section 12.3
Choose the simplest setup that fits the work:
- Use npm scripts in package.json to run tasks without relying on a more complex build system. section 12.6
- Grunt and Gulp aim to handle many tasks; Webpack focuses on bundling assets but can overlap with them. section 12.3
Listing 12.7. A simple package.json script
{
"name": "wcia",
"version": "1.0.0",
"scripts": {
"test": "echo 'Hello from package.json'" #1
}
}
A package.json scripts entry shows how an npm script can define a runnable project task. section 12.3

