mysticatea / npm-run-all

A CLI tool to run multiple npm-scripts in parallel or sequential.
MIT License
5.72k stars 240 forks source link

Output redirect or pipe in task #175

Open JochenDiekenbrock opened 5 years ago

JochenDiekenbrock commented 5 years ago

I'm using the npm-run-all api to run some tasks in parallel.

I want to redirect the output of each task to a separate file, so I can't use the stdout option to create a file. I tried to redirect or pipe the task output with by appending > task.out or | tee task.out to the task, but this failed.

I digged around a little bit and found that in run-task.js shell-quote is called, which puts > and | in quotes which makes them useless. Is there a way to achieve what I want?