MoonX is a CLI tool that makes it easy to run Moon tasks on multiple workspaces. It automatically scans for Moon tasks in your workspaces and creates a command for each task. You can then run the task on all of your workspaces or on a subset of workspaces.
To use MoonX, first install moon it globally with:
proto install moon
Then install MoonX with:
pnpm install @maastrich/moonx -g # global install is optional but recommended
Once MoonX is installed, you can scan for Moon tasks in your workspaces with:
moonx <command> [...workspaces] [MOON_OPTIONS] -- [COMMAND_OPTIONS]
MoonX provides comprehensive help information for both the MoonX CLI and the Moon tasks that are available in your workspaces. To get help for the MoonX CLI, run:
moonx --help
To get help for a specific Moon task, run:
moonx <task> --help
For example, to get help for the build
task, you would run:
moonx build --help