Search Gradle plugins

io.github.pereduromega.npm.plugin

Simple way to use npm scripts from gradle with scripts defined in package.json being auto-extracted as gradle tasks

https://github.com/PeredurOmega/GradleNpmPlugin

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

Using the plugins DSL:

plugins {
  id("io.github.pereduromega.npm.plugin") version "1.4.1-alpha4"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "io.github.pereduromega.npm.plugin" version "1.4.1-alpha4"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects