reggi / pkgrun

:runner: Run multiple package.json scripts with one command.
MIT License
7 stars 0 forks source link

Add parallelshell support? #1

Open tobiastom opened 9 years ago

tobiastom commented 9 years ago

Some tasks can run in parallel, for example watch tasks. It might be nice to add support for parallel execution. This could transform this:

"watch": "parallelshell 'npm run watch:javascript' 'npm run watch:less' 'npm run watch:images' 'npm run livewatch'",
"watch:javascript": "onchange 'Styleguide/**/*.js' -- npm run javascript",
"watch:less": "onchange 'Styleguide/**/*.less' -- npm run less",
"watch:images": "onchange 'resources/*' -- npm run images",

into this:

"watch": "pkgrun --parallel 'watch:*'",
"watch:javascript": "onchange 'Styleguide/**/*.js' -- npm run javascript",
"watch:less": "onchange 'Styleguide/**/*.less' -- npm run less",
"watch:images": "onchange 'resources/*' -- npm run images",
reggi commented 9 years ago

Hey @tobiastom I'm going to be working on a way for this to work. Stay tuned.

tobiastom commented 9 years ago

Great to hear. Thank you!