Using Mise for all the things

submited by
Style Pass
2024-12-30 14:30:08

I’ve been using Mise for some time now both for personal projects and work to manage versions of the tools used for my project. Recently, Mise has added some functionality tasks and environment leading me to consolidate some other tools like direnv, Make and entr.

In this example I have an environment variable named CLOUDFLARE_EMAIL and a secret CLOUDFLARE_API_KEY. Both are now set in my Mise configuration and when I enter the project directory.

Now that the environment is sorted out, we can replace utility scripts and a Makefile for running them with Mise tasks. These are also configured in the project’s .mise.toml file. For example, for this blog I have:

mise watch -t run -- -r will start watching files and rebuild everything whenever one of the files in sources are modified. The -r is passed to watchexec to force a process restart.

Leave a Comment