Yesterday 5.0.0 of the Javascript Ecosystem plugin...
# community-news
y
Yesterday 5.0.0 of the Javascript Ecosystem plugins suite was released. It still has support for the older way of doing things that the previous pluings versions supported, but it now has a much better way of managing toolchains in the Javascript ecosystem. IMO the mainline item in this release is the
pnpm
toolchain support, which also makes it very easy to take JS/TS-based tools and run them from Gradle i.e. Antora, Downdoc etc. Because you can allow
pnpm
to manage
node
on your behalf, it simplifies things even more. You can declare a set of packages to be associated with a toolchain and then prepare them with an instance of
PnpmPrepareTask
. You can then execute the appropraite packages from your toolchain using instances of
PnpmExecTask
(which under the hood calls
pnpm exec
with all the appropriate parameters and environment variables. This is a model similar to waht the JRubyPrepare and JRubyExec tasks do in the Simplified JRuby plugin suite. All tasks in this release should be CC-compatible and also work on Gradle 9 (although some of the legacy plugins might raise warnings on Gradle 9.7+). Docs are at javascript-gradle.ysb33r.org/javascript-ecosystem-gradle-plugin-suite/5.0.0/index.html
party gradlephant 1