Skip to content

Commit

Permalink
added gulp task to clean cli and sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
shishirx34 committed Dec 3, 2015
1 parent 2a05431 commit 05b4c80
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gulp/clean.js
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"]);

0 comments on commit 05b4c80

Please sign in to comment.