tscoverage/dist/npmts.install.js

21 lines
831 B
JavaScript
Raw Permalink Normal View History

2016-03-12 09:21:16 +00:00
"use strict";
2016-03-14 03:32:52 +00:00
/// <reference path="./typings/main.d.ts" />
2016-03-12 09:21:16 +00:00
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);
2016-03-20 18:09:58 +00:00
var absoluteTypingsArray = plugins.smartpath.transform.toAbsolute(config.typings, paths.cwd);
2016-03-12 09:21:16 +00:00
plugins.gulp.src(absoluteTypingsArray)
.pipe(plugins.g.typings())
.pipe(plugins.g.gFunction(function () {
2016-03-14 03:53:35 +00:00
plugins.beautylog.ok("typings have been installed!");
2016-03-12 09:21:16 +00:00
done.resolve(config);
}, "atEnd"));
return done.promise;
};