6 hours ago
- The author frequently switches between code repositories with different tech stacks and wants to run common tasks like installing dependencies, building, linting, formatting, and testing without remembering varying commands.
- To achieve consistency, they create convenience tooling such as bash scripts, Makefiles, justfiles, or mise.toml files that allow using the same command (e.g., run build or make test) across projects.
- A simple bash script can wrap common commands with functions for install, build, test, format, etc., offering flexibility but with sometimes awkward syntax.
- Make is a classic, widely available tool; it uses a Makefile with targets and requires .PHONY declarations to avoid file conflicts, and some shells provide tab completion for its targets.