What do you mean exactly by “doesn’t work”?
I’m not sure offhand if shell_cmd
supports the ;
construct to chain commands, so as a first step, I would try to replace them with &&
instead. That will tell the shell to run csscomb
but only if the stylelint
command executed without failure, which at the very least is probably safer overall.
Note: You don’t need the trailing ;
on the command since there’s nothing else to do after the second command finishes. Also it would be much more readable if you add /usr/local/bin
to your PATH
(if it’s not there already) so that you don’t have to specify it explicitly.
There’s no native way to execute multiple build systems in a row, although the API is present to create a plugin that would do such a thing. However note that build systems run in the background, so such a plugin would also have to wait for the current build to finish before starting the next one.
Most likely you’re better off doing what you’re doing above with multiple commands in one shell_cmd
or, if you have more than a couple of commands, creating an external shell script that performs all of the steps and using that in your build system instead.