I would like to insert arguments somewhere inside the command. Somehow to interpolate it. For instance:
{
"scripts": {
"foo": "git commit -am $message && git push"
}
}
Then run:
$ npm run foo -- --message "Baz"
Or something like this:
"foo": "git commit -am {0} && git push"
Then run:
$ npm run foo -- "Lorem"
Please note the git command here are just for demo purpose, we have different multiple commands. So Git Aliases are not the solution.
Is there is any way to achieve this behaviour with npm?