You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.
Other language plugins (e.g. Java, Groovy and Scala) create and or modify project.sourceSets, which allows the gradle DSL to be consistent across different languages. It would be great if the javascript source sets were consistent with the other languages in this respect.
Desirable example: specifying LESS and javascript sources
sourceSets {
main {
javascript {
exclude "*.min.js"
}
less {
exclude "_*"
}
}
}
The text was updated successfully, but these errors were encountered:
FYI, I did some looking and the DefaultSourceSetsContainer instantiates DefaultSourceSets, which kind of assume a jvm-compiled language (ie there's a classes output location). The other plugins mostly just apply the java plugin, which makes it easy for them.
For now, you can just do what java does and explicitly add your own sourcesSet object (subclassed to allow javascript-specific source sets). A more general solution could be creating a delegating SourceSetsContainer that creates javascript source sets and delegates any other source sets to the previously existing project.sourceSets object. I think this might call for talking to the Gradle folks, though.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Other language plugins (e.g. Java, Groovy and Scala) create and or modify project.sourceSets, which allows the gradle DSL to be consistent across different languages. It would be great if the javascript source sets were consistent with the other languages in this respect.
Desirable example: specifying LESS and javascript sources
The text was updated successfully, but these errors were encountered: