Quick Start
Here's a bare minimum setup when using the plugin standalone or together with one of the kotlin plugins.
build.gradle.kts | |
---|---|
nodejs()
works toouri
can also be set from String asuri.set("https://registry.npmjs.org")
in which case the plugin will construct an URI instance from the string for you
build.gradle.kts | |
---|---|
nodejs()
works toouri
can also be set from String asuri.set("https://registry.npmjs.org")
in which case the plugin will construct an URI instance from the string for you
build.gradle.kts | |
---|---|
uri
can also be set from String asuri.set("https://registry.npmjs.org")
in which case the plugin will construct an URI instance from the string for you
This setup would produce the following tasks:
assembleJsNpmPackage: NpmAssembleTask
packJsNpmPackage: NpmPackTask
publishJsPackageToNpmjsRegistry: NpmPublishTask
Info
One publish task is created for every package
+ registry
combination.
The task is named as publish<PackageName>PackageTo<RegistryName>Registry