Extension that allows for setting of Gulp configuration at a project or task level. If no executable is set the default will be to install GULP_DEFAULT for a project extension. In the case of a task extension it will default to the project extension's settings.
| Fields inherited from class | Fields |
|---|---|
class AbstractPackageWrappingExtension |
USE_DEFAULT_EXTENSIONS, USE_EMBEDDED_EXTENSIONS, nodeJSExtension, npmExtension |
| Type | Name and description |
|---|---|
static java.lang.String |
GULP_DEFAULTThe default version of Gulp that will be used if nothing is configured. |
static java.lang.String |
NAME |
java.lang.Object |
gulpFile |
java.lang.Iterable<java.lang.String> |
requires |
| Constructor and description |
|---|
GulpExtension
(org.gradle.api.Project project)Adds the extension to the project. |
GulpExtension
(GulpTask task)Adds the extension to a GulpTask task. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected java.lang.String |
getEntryPoint()The entrypoint path relative to the installed executable folder |
|
protected java.lang.String |
getExtensionName()Returns the name by which the extension is known. |
|
java.io.File |
getGulpFile()The location of gulpfile.js. |
|
java.lang.Iterable<java.lang.String> |
getRequires()Get set of requires that will be passed to Gulp. |
|
void |
gulpFile(java.lang.Object gulpFileLocation)Sets the location of gulpfile.js |
|
void |
requires(java.lang.String... reqs)Appends more require specifications. |
|
void |
requires(java.lang.Iterable<java.lang.String> reqs)Appends more require specifications. |
|
void |
setGulpFile(java.lang.Object gulpFileLocation)Sets the location of gulpfile.js |
|
void |
setRequires(java.lang.Iterable<java.lang.String> reqs)Replace any existing require specifications with a new one. |
| Methods inherited from class | Name |
|---|---|
class AbstractPackageWrappingExtension |
executable, executableByPath, executableByVersion, getEntryPoint, getExecutable, getExtensionName, getGlobalPackageWrappingExtension, getInstallGroup, setInstallGroup |
The default version of Gulp that will be used if nothing is configured.
Adds the extension to the project.
Sets the default Gulp tag to GULP_DEFAULT.
project - Project to link to.The entrypoint path relative to the installed executable folder
bin/gulp.jsReturns the name by which the extension is known.
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.
Sets the location of gulpfile.js
Appends more require specifications.
reqs - one of more require specificationsAppends more require specifications.
reqs - Iteratable list of executable requirements Sets the location of gulpfile.js
Replace any existing require specifications with a new one.
reqs - Iteratable list of executable requirements.Groovy Documentation