Could anyone please drop a link to examples with t...
# javascript
р
Could anyone please drop a link to examples with the recommended approach to create, publish & re-use nodejs (npm/yarn) packages via kotlinjs (gradle)? I find a lot of information about the browser targets in the official documentation, but not much for nodejs ((. Huge thanks!
b
I've written a gradle plugin specifically for this. github.com/mpetuska/npm-publish
You don't even have to publish your package. You can just pack it and then install it to your js project from .tar
But if you want to reuse kotlinJs package from another kotlinJs project, then just publish it via maven-publish plugin and add it as any other normal dependency
р
Oh that's amazing! Thank you 🤗