3 ms·
i know this goes down the rabbit hole, but i think every project benefits from a makefile or other taskrunner file. even if a project is a simple “docker build
by wkdneidbwf 3y ago
i know this goes down the rabbit hole, but i think every project benefits from a makefile or other taskrunner file. even if a project is a simple “docker build ...” having done task makes it really easy to see
- notatoad 3y ago"or other taskrunner file" is the problem, because to some approximation npm or docker are task runners. The presence of a makefile at the top level tells you you can run make. The presence of a dockerfile tells you you can build with docker. It's not a good system, but it kinda works.
- wkdneidbwf 3y agono, a makefile with a docker build task acts as a reference for how to build the image. that’s my point. _any_ repo has clues about the toolchain encoded in the file types and extensions, but that’s not the same thing. and yes, npm or yarn can define scripts which can have the same documentation benefits. but there’s lots of others too that are specifically for tasks. i really like https://taskfile.dev https://taskfile.dev. these files can communicate how to work in a project.