Using Just
I’ve been using just for a lot of my projects. It helps a bunch with the context-switching: I can open most project directories and run just dev
, and it’ll boot up the server that I need. For example, the blog’s justfile has:
dev:
bundle exec jekyll serve --watch --live --future
I used to use Makefiles a bit, but there’s a ton of tricky complexity in them, and they really weren’t made as cheat-sheets to run commands - Makefiles and make are really intended to build (make) programs, like run the C compiler. Just scripts are a lot easier to write.