Print a list available of tasks:
Run a task or an alias
Run multiple tasks:
Override config options (or run without a config file):
Custom config and tasks folder:
Run a task from a preset (globally installed
mrm-preset-unicorn npm package, read more about presets):
Usage via npx
If you have npm 5.3 or newer you can use mrm without installation:
There are three ways for setting tasks configurations: interactive mode, command line parameters, and config files.
See tasks docs for available config options on core tasks.
-i argument to enable interactive/prompt mode:
This will prompt for all ESLint Mrm task options prior to running the task. It will also use command line parameters and config files as defaults for each option.
When to use: use this configuration mode for one-time running Mrm (typically with
npx) when you don't know available options upfront and don't want to create a config file.
Command line parameters
You can pass any option as a command line parameters as follows:
This will ultimately set the
name config for this single task execution.
When to use: when you know upfront all the configuration names and expected values; when you are running
mrm on CI.
When to use: when you often use the same configuration (usually when you scaffold new projects frequently); when you want to define sets of default task aliases.