This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Gulp.
Summary
Allows access to the gulp task orchestrator for either the local or global installation.
- Assembly
- Cake
.Gulp .dll - Namespace
- Cake
.Gulp - Containing Type
- GulpRunnerAliases
Syntax
public static GulpRunnerFactory Gulp(this ICakeContext context)
Examples
Run 'gulp' from your local gulp installation.
Cake task:
Task("Gulp")
.Does(() =>
{
Gulp.Local.Execute();
});
Run 'gulp' from your global gulp installation.
Cake task:
Task("Gulp")
.Does(() =>
{
Gulp.Global.Execute();
});
Run 'gulp --gulpfile gulpbuild.js'.
Cake task:
Task("Gulp")
.Does(() =>
{
Gulp.Local.Execute(settings => settings.WithGulpFile("gulpbuild.js"));
Gulp.Global.Execute(settings => settings.WithGulpFile("gulpbuild.js"));
});
Run 'gulp ci'.
Cake task:
Task("Gulp")
.Does(() =>
{
Gulp.Local.Execute(settings => settings.WithArguments("ci"));
Gulp.Global.Execute(settings => settings.WithArguments("ci"));
});
Run 'gulp ci --dist=./artifacts/dist'.
Cake task:
Task("Gulp")
.Does(() =>
{
Gulp.Local.Execute(settings => settings.WithArguments("ci --dist=./artifacts/dist"));
});
Attributes
Type | Description |
---|---|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The cake context. |
Return Value
Type | Description |
---|---|
GulpRunnerFactory | A new instance of the GulpRunnerFactory . |