tscoverage/ts/npmts.assets.ts

15 lines
462 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;
if(config.cli == true){
plugins.smartfile.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir);
done.resolve(config);
} else {
done.resolve(config);
}
return done.promise;
};