npm-run-all icon indicating copy to clipboard operation
npm-run-all copied to clipboard

Pass same param to scripts

Open dzolnjan opened this issue 7 years ago • 1 comments

Can I pass one (or more) same arguments to all scripts in run-all?

"foo:1": "ng build foo1",
"foo:2": "ng build foo2",
"foos": "npm-run-all foo:* -- --enviroment=staging"

So it is executed as "ng build foo1 --enviroment=staging && ng build foo2 --enviroment=staging"

dzolnjan avatar Feb 12 '18 19:02 dzolnjan

You can try

"foo:1": "ng build foo1",
"foo:2": "ng build foo2",
"foos": "npm-run-all \"foo:* --enviroment=staging\""

IllusionMH avatar Sep 18 '18 13:09 IllusionMH