Search Gradle plugins

io.github.pereduromega.node.plugin

Simple way to use node scripts (npm, yarn, pnpm) from gradle with scripts defined in package.json being auto-extracted as gradle tasks

https://github.com/PeredurOmega/GradleNodePlugin

Sources: https://github.com/PeredurOmega/GradleNodePlugin

Version 2.0.7 (latest)

2.0.7

Created 06 May 2024.

Simple way to use node scripts (npm, yarn, pnpm) from gradle with scripts defined in package.json being auto-extracted as gradle tasks

Using the plugins DSL:

plugins {
  id("io.github.pereduromega.node.plugin") version "2.0.7"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.pereduromega:GradleNpmPlugin:2.0.7")
  }
}

apply(plugin = "io.github.pereduromega.node.plugin")

Using the plugins DSL:

plugins {
  id "io.github.pereduromega.node.plugin" version "2.0.7"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.pereduromega:GradleNpmPlugin:2.0.7"
  }
}

apply plugin: "io.github.pereduromega.node.plugin"

Learn how to apply plugins to subprojects