15 lines
462 B
TypeScript
15 lines
462 B
TypeScript
|
/// <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;
|
||
|
};
|