I've just published a first preview version of the...
# javascript
b
I've just published a first preview version of the gradle plugin I've been working for past couple days. It enables publishing to NPM repositories in a similar way
maven-publish
does for maven repsitories. It also setups your publications automatically from your JS compilations, yet allows for custom publications too. Give it a goo and let me know what you think! https://gitlab.com/lt.petuska/kpm-publish/-/releases/v0.0.2
👍 3
❤️ 3
It's currently only on bintray, until my request to add it to gradlePluginPortal is approved
a
I'm guessing it doesn't (yet) support multiple publications with interdependencies from a single JS compilation task? (commented on your previous post with my use case)
b
no, not yet. This currently just creates a publication per compilation/target
👍 1
Happy to add support for this, but I'm still not clear on your use-case. Could you kindly create an issue in the repository explaining it in more details, preferrably with your current gradle setup snippets.
As usual, found compatibility issues with kotlin 1.4 after initial release.. Here's a hotfixed release: https://gitlab.com/lt.petuska/kpm-publish/-/releases/v0.0.3
r
@Big Chungus Can it be used to publish npm package not connected to any source set? Like
kvision-assets
which just contains some resources?
b
Yes, you can add your own publications. However currently the plugin only registers if you have browser or nodejs flavour defined as it depends on nodejs setup task
And it needs a compilation to hook up to. I probably should add support for arbitrary files directory too
Gonna do that later today. Could you raise an issue describing your usecase, please?
r
I will. Thx.
b
Just released v0.0.4 @Robert Jaros does this fulfil your use-case?
r
Probably yes. Thx. I'll try to test this and let you know.
b
Apologies guys, but I've decided to rename the plugin from kpm-publish to npm-publish while noone is using it yet since the mission now has changed to support generic npm packages (not just kotlin). Here's v0.0.5