I have created javascript library in Kotlin with some components. It is packaged by gradle to jar and published to our maven repository. It has dependency on kotlin-stdlib-js and kotlinx-html-js. The library is used as dependency in some kotlin web projects. (All is prototype yet.). Library contains javascript and css. Web projects unpack all their dependecies.
Now I would like to use some javascript library in our component library - for example bootstrap. But I am not sure how to do it. I think I must create some bootstrap.jar, put it to our maven repository and add dependency on it to our library. Is somewhere described structure of this javascript jar packages? Is it right way?