forked from microsoft/code-push
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added gulp task to clean cli and sdk
- Loading branch information
1 parent
2a05431
commit 05b4c80
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"use strict"; | ||
|
||
var gulp = require("gulp"); | ||
var del = require("del"); | ||
|
||
function deleteTask(glob, next) { | ||
del(glob, null, next); | ||
} | ||
|
||
var cliCleanList = ["cli/bin/**/*", "!cli/bin/.*"]; | ||
var sdkCleanList = ["sdk/bin/**/*", "!sdk/bin/.*"]; | ||
|
||
gulp.task("clean-cli", function(next) { deleteTask(cliCleanList, next); }); | ||
gulp.task("clean-sdk", function(next) { deleteTask(sdkCleanList, next); }); | ||
|
||
gulp.task("clean", ["clean-cli", "clean-sdk"]); |