17 lines
477 B
JavaScript
17 lines
477 B
JavaScript
|
"use strict";
|
||
|
/// <reference path="./typings/main.d.ts" />
|
||
|
var plugins = require("./npmts.plugins");
|
||
|
var paths = require("./npmts.paths");
|
||
|
exports.run = function (configArg) {
|
||
|
var done = plugins.Q.defer();
|
||
|
var 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;
|
||
|
};
|