tscoverage/ts/npmts.assets.ts

17 lines
595 B
TypeScript
Raw Normal View History

2016-03-14 03:32:52 +00:00
/// <reference path="./typings/main.d.ts" />
import plugins = require("./npmts.plugins");
import paths = require("./npmts.paths");
export var run = function(configArg){
let done = plugins.Q.defer();
let config = configArg;
2016-03-14 03:53:35 +00:00
plugins.beautylog.log("now looking at required assets");
2016-03-14 03:32:52 +00:00
if(config.cli == true){
2016-03-20 18:09:58 +00:00
plugins.smartfile.fsaction.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir);
2016-03-14 03:53:35 +00:00
plugins.beautylog.ok("CLI asset has been installed!");
2016-03-14 03:32:52 +00:00
done.resolve(config);
} else {
done.resolve(config);
}
return done.promise;
};