can i add startscripts from package.json somehow t...
# javascript
n
can i add startscripts from package.json somehow to the npm configuration in the frontend plugin? this example: https://github.com/ScottHuangZL/my-kotlin-app/blob/master/package.json#L16-L22
s
There is no way to do it, but it is not the best way do it in Gradle build. New Kotlin/JS Gradle plugin will run all the required things and will open browser when you call
./gradlew run
. New Kotlin/JS Gradle plugin will replace Kotlin Frontend plugin.
n
so.. should i use multiplatform plugin in one project with different sourcesets? or should i do subprojects with specific plugins? eg. js / jvm
s
It is better to use the MPP plugin when you want to share code between platforms. If you have js-only Kotlin code, then it is better to use the new Kotlin/JS Gradle plugin. About the future: we have plans for a unified Gradle plugin, but there are some technical issues. Anyway, in the future, it should be only one Kotlin Gradle plugin.