Kotlin Web Assembly WebGL Auto Stub
WebGLRenderingContext is a big API, it has 200+ properties and 100+ methods, writing a JavaScript stub and corresponding Kotlin stub is very difficult
We need to write 1400+ lines of JavaScript code and 3000+ lines Kotlin code
This Kotlin gradle script provides a simple approach to auto generate the stub and also compile the generated code to .klib
Gradle Stub Code in KTS