Alternative solutions
This is not the only solution. You might also want to look at
-
Palantir NPM plugin - A Gradle Plugin to create lifecycle tasks that trigger npm run commands.
-
Craig Burke’s Client Dependencies plugin: Install client side dependencies from NPM or Bower by declaring dependencies in build.gradle].
-
Moowork’s Node plugin: Gradle plugin for executing node scripts (supports NPM, Yarn, Grunt and Gulp).