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

http://lt.petuska.gitlab.io/npm-publish

Version 1.0.1 (latest)

Created 26 October 2020.

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.0.1"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects