Sebastian Aigner
10/26/2021, 3:02 PMyarn.lock
 files and fine-grained control over Yarn’s lifecycle scripts in Kotlin/JS and Kotlin Multiplatform projects directly.
https://blog.jetbrains.com/kotlin/2021/10/control-over-npm-dependencies-in-kotlin-js/Oliver.O
10/26/2021, 4:49 PMmbonnin
10/28/2021, 4:05 PMmbonnin
10/28/2021, 4:06 PMimplementation(npm("myDep", "1.2.3"))
mbonnin
10/28/2021, 4:07 PMOliver.O
10/28/2021, 4:17 PMOliver.O
10/28/2021, 4:28 PMyarn.lock
file. After installation, there are two kinds of javascript executables: Runtime dependencies and development dependencies.
• Runtime dependencies execute in the browser's sandbox, which reduces the attack surface. However, their code may have access to whatever data your app processes.
• Development dependencies (such as the Karma test runner) execute in a Node environment with local user privileges, including file system access.Oliver.O
10/28/2021, 4:35 PMkotlinNpmInstall.finalizedBy(yarnLockValidate)
dependency to my Gradle build script, which stops the build process if the verification fails. (Note that my build script slightly differs from the one posted in the Blog, as I'm using delegates and a different name, but you should get the idea.)mbonnin
10/28/2021, 4:40 PMThe latter are uncommon for Maven and Gradle users, but they are routine in the JS ecosystem.I see, thanks!
functionaldude
10/29/2021, 12:21 PMdisableGranularWorkspaces
part and the backupYarnLock
gradle task, then generate the yarn.lock.bak
file by executing the backupYarnLock
task, and then add the remaining tasks described in the articleNikola Milovic
11/14/2021, 7:21 AMTask with name 'kotlinNpmInstall' not found in project ':web-app'.
Even when I did them step by step as @functionaldude describedfunctionaldude
11/15/2021, 5:18 PMNikola Milovic
11/15/2021, 5:45 PMfunctionaldude
11/16/2021, 8:58 AMsettings.gradle.kts
) but what’s the “BuildSrc build.gradle”?Nikola Milovic
11/16/2021, 10:16 AMfunctionaldude
11/16/2021, 2:20 PMNikola Milovic
11/16/2021, 2:58 PM