Kotlin / kotlin-frontend-plugin

Gradle Kotlin (http://kotlinlang.org) plugin for frontend development
Apache License 2.0
561 stars 69 forks source link

Doesn't handle npm dependencies of dependent project #137

Open mpiniarski opened 5 years ago

mpiniarski commented 5 years ago

Having project B with a set of npm dependencies defined in gradle using the plugin syntax it's not possible to add project B as a dependency to project A without redefining all npm dependencies in project A.

i.e. in project B:

...
apply plugin: 'org.jetbrains.kotlin.frontend'
...
kotlinFrontend {
    ...
    npm {
        dependency("some-dependency", "$some-dependency_version")
    }
}

in project A

...
apply plugin: 'org.jetbrains.kotlin.frontend'
...
dependencies {
    compile project(':B')
}

doesn't work, because project A is missing some-dependency npm module. Because of this it's hard to manage project with multiple subprojects, cause it results managing all dependiencies in a root project.

mpiniarski commented 5 years ago

up