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

Sources: https://gitlab.com/lt.petuska/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.

Add this plugin to your build using the plugins DSL:

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

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("lt.petuska.npm.publish:lt.petuska.npm.publish.gradle.plugin:1.1.4")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("lt.petuska.npm.publish")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("lt.petuska.npm.publish:lt.petuska.npm.publish.gradle.plugin:1.1.4")
      }
    }
    
    apply(plugin = "lt.petuska.npm.publish")
  • Applying plugins to all subprojects .