Search Gradle plugins

lt.petuska.npm.publish

Integrates with kotlin JS/MPP plugins to setup publishing to NPM repositories for all JS targets. Also allows for arbitrary non-kotlin publications

https://github.com/mpetuska/npm-publish

Version 1.1.4 (latest)

Created 06 April 2021.

A maven-publish alternative for NPM package publishing.
Integrates with kotlin JS/MPP plugins (if applied) to automatically
setup publishing to NPM repositories for all JS targets.

Using the plugins DSL:

plugins {
  id "lt.petuska.npm.publish" version "1.1.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "lt.petuska:npm-publish:1.1.4"
  }
}

apply plugin: "lt.petuska.npm.publish"

Using the plugins DSL:

plugins {
  id("lt.petuska.npm.publish") version "1.1.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("lt.petuska:npm-publish:1.1.4")
  }
}

apply(plugin = "lt.petuska.npm.publish")

Learn how to apply plugins to subprojects