or maybe a related question what i actiually want ...
# javascript
t
or maybe a related question what i actiually want to do: we have a multi(-gradle-)modul project targeting jvm and js. to be useful for our frtonend-team we currently build an npm module, containing all dependencies using
npm assemble
. We do this job manuall using the moowork npm plugin. But with 1.3.60 (and possibly already with 1.3.50) this step fails because the "main" modul's js file is packaged into a zip file. Of course i could go an unzip the file so i have the file agian but that's tedious, of course. Is there a way to leverage the new plugin's abilitys to assemble the npm package?
a
сс @Ilya Goncharov [JB]
i
Hello, you can find js files in
build/js/packages
What tasks do you use? And what tasks produce zip files?
t
yeah i realized the files are there - yet in new directories. i had to adapt my tasks that copy around the generated js files:
project.tasks["compileKotlinJs"].let { (it as Kotlin2JsCompile).destinationDir }
to get the dependencies of my main module and
project.tasks["compileKotlinJs"].outputs)
of my main module to get the js file of itself - that made it work again 🙂
👍 1