2016-03-14 03:32:52 +00:00
|
|
|
"use strict";
|
|
|
|
/// <reference path="./typings/main.d.ts" />
|
|
|
|
var plugins = require("./npmts.plugins");
|
|
|
|
var paths = require("./npmts.paths");
|
2016-05-17 00:32:40 +00:00
|
|
|
var npmts_promisechain_1 = require("./npmts.promisechain");
|
2016-03-14 03:32:52 +00:00
|
|
|
exports.run = function (configArg) {
|
|
|
|
var done = plugins.Q.defer();
|
|
|
|
var config = configArg;
|
2016-05-17 00:32:40 +00:00
|
|
|
npmts_promisechain_1.npmtsOra.text("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-05-17 00:32:40 +00:00
|
|
|
plugins.beautylog.ok("installed CLI assets!");
|
2016-03-14 03:32:52 +00:00
|
|
|
done.resolve(config);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
done.resolve(config);
|
|
|
|
}
|
|
|
|
return done.promise;
|
|
|
|
};
|