npm-run-all
npm-run-all copied to clipboard
Question: Parallel with serial
Is it possible to compile serial and parallel tasks? Ex:
run-s lint run-p build
In this example, I'm assuming that build will run after lint completes
Thank you for this issue.
Though I might not understand this issue, I think there are some solutions:
npm-run-all -s lint -p build:*
npm run lint && run-p build:*
"prebuild": "npm run lint",
"build": "run-p build:*"
@mysticatea i think @amilajack meant nested task, example:
/- `favicons` -> `imagemin` (`serial`)
/-- `webfont` (`serial`)
`parallels`
\-- `copy` (`serial`)
\- `another-task` -> `another-task-too` -> `another-task-too-too` (`serial`)
Yeah.. nested serial tasks within a parallel block would be useful. i guess it's possible if you added another script for the nested task but that won't scale well. and naming things is hard
for example i wanted to do this:
+---> clean <--+
| |
| |
| +
| html:build
+ ^
js:build |
^ +
| css:build
| ^
| |
| |
+--------------+
|
rev
api could look something like this?
npm-run-all clean -p js:build [ -s html:build css:build ] -s rev