com.eriwen.gradle.js.JavaScriptExtension.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-js-plugin Show documentation
Show all versions of gradle-js-plugin Show documentation
A Gradle plugin for working with JS.
The newest version!
package com.eriwen.gradle.js
import org.gradle.api.Project
import org.gradle.api.internal.file.FileResolver
import org.gradle.internal.reflect.Instantiator
import org.gradle.util.ConfigureUtil
import com.eriwen.gradle.js.source.JavaScriptSourceSetContainer
import com.eriwen.gradle.js.source.internal.DefaultJavaScriptSourceSetContainer
class JavaScriptExtension {
public static final NAME = "javascript"
final JavaScriptSourceSetContainer source
JavaScriptExtension(Project project, Instantiator instantiator, FileResolver fileResolver) {
source = instantiator.newInstance(DefaultJavaScriptSourceSetContainer, project, instantiator, fileResolver)
}
void source(Closure closure) {
ConfigureUtil.configure(closure, source)
}
}