-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathusage.cake
30 lines (25 loc) · 890 Bytes
/
usage.cake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// #addin "Cake.Gulp"
#r "artifacts\build\Cake.Gulp.dll"
Task("Default")
.Does(() =>
{
try {
Information("Running Global Gulp");
// Executes gulp from a global installation (npm install -g gulp)
Gulp.Global.Execute();
} catch(Exception ex) {
Error(ex.ToString());
}
try {
Information("Running Local Gulp");
// Executes gulp from a local installation (npm install gulp)
Gulp.Local.Execute(settings => settings.WithGulpFile("gulpfile.js"));
} catch(Exception ex) {
Error(ex.ToString());
}
});
//////////////////////////////////////////////////////////////////////
// EXECUTION
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
RunTarget(target);