You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unsure as to if this is a bug or a feature request, but I cannot work out if currently it is possible to provide aliases with a preset.
Expected behaviour:
I would expect that adding a config.json at the root of the preset would allow this alias to be called when specifying the preset
currently adding a config.json of
{
"aliases": {
"test": ["gitignore"]
}
}
and then running
npx mrm --preset my-preset
returns a list of tasks, without the aliases
running npx mrm test --preset my-preset
returns
Cannot call task “test”.
Make sure your task module exports a function.
I'm currently working around this my providing a task that iterates over all the other tasks, but this feels like something that should be handled by config.
This discussion was converted from issue #204 on September 13, 2023 15:22.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm unsure as to if this is a bug or a feature request, but I cannot work out if currently it is possible to provide aliases with a preset.
Expected behaviour:
I would expect that adding a config.json at the root of the preset would allow this alias to be called when specifying the preset
currently adding a config.json of
and then running
npx mrm --preset my-preset
returns a list of tasks, without the aliases
running
npx mrm test --preset my-preset
returns
I'm currently working around this my providing a task that iterates over all the other tasks, but this feels like something that should be handled by config.
Beta Was this translation helpful? Give feedback.
All reactions