@groovy.transform.CompileStatic class GulpExtension extends Object
Extension that allows for setting of Gulp configuration at a project or task level.
| Constructor and description |
|---|
GulpExtension
(GulpTask task) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected String |
getEntryPoint() |
|
Provider<File> |
getGulpFileProvider()The location of gulpfile.js. |
|
Iterable<String> |
getRequires()Get set of requires that will be passed to Gulp. |
|
Provider<java.util.Set<String>> |
getRequiresProvider()Lazy-evaluated list of requires. |
|
void |
requires(String[] reqs)Appends more require specifications. |
|
void |
requires(Iterable<String> reqs)Appends more require specifications. |
|
void |
setGulpFile(Object gulpFileLocation)Sets the location of gulpfile.js |
|
void |
setRequires(Iterable<String> reqs)Replace any existing require specifications with a new one. |
The location of gulpfile.js.
project.file( "\${project.projectDir/gulpfile.js"} will be returned.Get set of requires that will be passed to Gulp.
This is the same as the --requires command-line.
Lazy-evaluated list of requires.
Appends more require specifications.
reqs - one of more require specificationsAppends more require specifications.
reqs - Iteratable list of executable requirementsSets the location of gulpfile.js
Groovy Documentation