DEV Community

Casey Brooks
Casey Brooks

Posted on

Run Node Scripts or Gulp/Grunt Tasks From Gradle

I recently came across this Gradle plugin while getting started with Kotlin/JS. It will download Node as part of your build (so it doesn't even need to be installed on your CI server), let you run arbitrary Node scripts, and setup Gradle tasks that mirror your Gulp or Grunt tasks.

I haven't done much with it yet, but its potential for making one seamless build for full-stack Gradle projects is huge.

GitHub logo srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. 🚀

Gradle Plugin for Node

Build Status Windows Build status License Version

This plugin enabled you to use a lot of NodeJS-based technologies as part of your build without having NodeJS installed locally on your system. It integrates the following NodeJS-based system with Gradle:

It's actually 3 plugins in one:

Documentation

Here's how you get started using this plugin. If you do not find what you are looking for, please add an issue to GitHub Issues.

Documentation for older releases

Here's the documentation for older releases of the plugin:

Building the Plugin

To build the plugin, just type the following command:

./gradlew clean build
Enter fullscreen mode Exit fullscreen mode

Contributing

Contributions are always…

Top comments (1)

Collapse
 
ben profile image
Ben Halpern

Damn, seems like a great project. I'm not in this universe right now, but stuff like this is awesome.