node-gradle / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
601 stars 117 forks source link

Parallell execution of task in same node project? #231

Open Lucas3oo opened 2 years ago

Lucas3oo commented 2 years ago

Hi

It is possible to configure a task for a project to run in parallell ?

Say for instance if I have a task that run "ng lint" and one task that runs "ng extract-i18n" ? (Via npm)

Best regards Lucas

deepy commented 2 years ago

Hi Lucas,

Unfortunately this is a current limitation in Gradle

belovaf commented 2 years ago

This can be achieved with worker-api. But this will require to restructure code in all tasks (extract all logic to separate worker classes, etc). @deepy, are you interested in such PR?

deepy commented 2 years ago

@belovaf sure, that'd be great!

There's a branch called test-sbs where I've just been playing around with doing slightly related work (the idea being to enable something like the Toolchains for JVM projects) but be warned that it started out as exploratory testing to see how much work it would be and where the project would fight me :-)

I'll commit and push my local changes as soon as I fix any tests that are currently broken, although now that I think about it, I don't think there was anything of interest in there

deepy commented 2 years ago

Oh and if it requires dropping support for Gradle versions lower than 6.1 it'll have to wait until after the next release, but that's already being planned