--- name: mise-tasks description: Rules and best practices for writing and editing mise tasks. --- ## Task naming and location - Tasks should be placed in `.mise-tasks/` or a subdirectory of it. - The task path corresponds to the task name - Example: - `.mise-tasks/start.sh` corresponds to `mise run start` - `.mise-tasks/test/app.mts` corresponds to `mise run test:app` - `.mise-tasks/agents/worktree/init.sh` corresponds to `mise run agents:worktree:init` - `goodies:*` (`.mise-tasks/goodies/`) holds optional developer extras, such as menu bar items or shell helpers. Nothing in the dev stack, CI, or other tasks may depend on them. Start their descriptions with `Bonus:`. - When creating tasks, run `chmod +x ` to make them executable. - Consult `mise.toml` to understand more about what tools and environment variables are available to support tasks. - For typescript tasks, the root `package.json` has utilities for writing tasks in TypeScript more effectively. ## Task Configuration for Bash Tasks - This is how you write [mise](https:/mise.jdx.dev) tasks using bash. - This is a list of all the relevant configuration options available in shell scripts. - It is not an exhaustive list. All options can be found [here](https:/mise.jdx.dev/tasks/task-configuration.html). - Tasks options MUST come right after the initial shebang line - Each task option must be listed one a separate line and MUST follow the form `#MISE