tscoverage/ts/npmts.clean.ts

14 lines
478 B
TypeScript
Raw Normal View History

2016-03-21 00:07:34 +00:00
/// <reference path="./typings/main.d.ts" />
import plugins = require("./npmts.plugins");
import paths = require("./npmts.paths");
export let run = function(configArg){
2016-04-01 23:20:52 +00:00
plugins.beautylog.log("now cleaning up from previous builds...");
2016-03-21 00:07:34 +00:00
let done = plugins.Q.defer();
plugins.smartfile.fsaction.remove(paths.distDir)
.then(function(){
2016-04-01 23:20:52 +00:00
plugins.beautylog.ok("Cleaned up!");
2016-03-21 00:07:34 +00:00
done.resolve(configArg);
});
return done.promise;
};