tscoverage/dist/mod00/index.js

23 lines
761 B
JavaScript
Raw Normal View History

2016-10-21 15:48:52 +00:00
"use strict";
/* ------------------------------------------
* This module compiles TypeScript files
* -------------------------------------------- */
2017-01-17 23:58:09 +00:00
const q = require("smartq");
2016-10-21 15:48:52 +00:00
const npmts_log_1 = require("../npmts.log");
const NpmtsAssets = require("./mod00.assets");
const NpmtsCheck = require("./mod00.check");
const NpmtsClean = require("./mod00.clean");
const NpmtsCompile = require("./mod00.compile");
exports.run = function (configArg) {
let done = q.defer();
npmts_log_1.npmtsOra.text('starting TypeScript Compilation');
NpmtsClean.run(configArg)
.then(NpmtsCheck.run)
.then(NpmtsCompile.run)
.then(NpmtsAssets.run)
.then(function () {
done.resolve(configArg);
});
return done.promise;
};