21 lines
819 B
JavaScript
21 lines
819 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 config = configArg;
|
|
var done = plugins.Q.defer();
|
|
/* -------------------------------------------------
|
|
* ----------- install typings ---------------
|
|
* ----------------------------------------------- */
|
|
plugins.beautylog.log("now installing " + "typings".yellow);
|
|
var absoluteTypingsArray = plugins.smartpath.absolute(config.typings, paths.cwd);
|
|
plugins.gulp.src(absoluteTypingsArray)
|
|
.pipe(plugins.g.typings())
|
|
.pipe(plugins.g.gFunction(function () {
|
|
plugins.beautylog.ok("typings have been installed!");
|
|
done.resolve(config);
|
|
}, "atEnd"));
|
|
return done.promise;
|
|
};
|