tscoverage/dist/mod_compile/index.js

25 lines
875 B
JavaScript
Raw Normal View History

2016-10-21 15:48:52 +00:00
"use strict";
2017-02-27 21:19:14 +00:00
Object.defineProperty(exports, "__esModule", { value: true });
2016-10-21 15:48:52 +00:00
/* ------------------------------------------
2017-03-04 20:49:10 +00:00
* This module compiles the module's TypeScript files
* Note: Test files are only compiled in memory
2016-10-21 15:48:52 +00:00
* -------------------------------------------- */
2017-01-17 23:58:09 +00:00
const q = require("smartq");
2017-11-28 16:33:55 +00:00
const plugins = require("./mod.plugins");
const NpmtsAssets = require("./mod.assets");
const NpmtsCheck = require("./mod.check");
const NpmtsClean = require("./mod.clean");
const NpmtsCompile = require("./mod.compile");
2016-10-21 15:48:52 +00:00
exports.run = function (configArg) {
let done = q.defer();
2017-01-21 22:23:00 +00:00
plugins.beautylog.ora.text('starting TypeScript Compilation');
2016-10-21 15:48:52 +00:00
NpmtsClean.run(configArg)
.then(NpmtsCheck.run)
.then(NpmtsCompile.run)
.then(NpmtsAssets.run)
.then(function () {
done.resolve(configArg);
});
return done.promise;
};