tscoverage/dist/mod00/index.js

25 lines
885 B
JavaScript
Raw Permalink 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-01-21 22:23:00 +00:00
const plugins = require("./mod00.plugins");
2016-10-21 15:48:52 +00:00
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();
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;
};