tscoverage/dist/npmts.promisechain.js

52 lines
2.2 KiB
JavaScript
Raw Normal View History

2016-03-12 09:21:16 +00:00
"use strict";
2016-05-25 03:23:48 +00:00
require("typings-global");
2016-03-12 10:09:54 +00:00
var plugins = require("./npmts.plugins");
2016-05-17 00:32:40 +00:00
exports.npmtsOra = new plugins.beautylog.Ora("setting up TaskChain", "cyan");
2016-03-14 03:32:52 +00:00
var NpmtsAssets = require("./npmts.assets");
2016-03-21 00:07:34 +00:00
var NpmtsClean = require("./npmts.clean");
2016-03-14 03:32:52 +00:00
var NpmtsCompile = require("./npmts.compile");
2016-02-19 23:53:23 +00:00
var NpmtsConfigFile = require("./npmts.configfile");
2016-03-12 09:21:16 +00:00
var NpmtsInstall = require("./npmts.install");
2016-02-22 21:22:39 +00:00
var NpmtsJsdoc = require("./npmts.jsdoc");
2016-03-14 03:32:52 +00:00
var NpmtsOptions = require("./npmts.options");
2016-03-26 13:08:48 +00:00
var NpmtsPublish = require("./npmts.publish");
2016-02-19 23:53:23 +00:00
var NpmtsTests = require("./npmts.tests");
2016-05-19 16:37:54 +00:00
exports.promisechain = function () {
2016-05-19 16:42:23 +00:00
var done = plugins.Q.defer();
2016-06-10 04:14:12 +00:00
exports.npmtsOra.start();
2016-02-19 23:53:23 +00:00
NpmtsConfigFile.run()
.then(NpmtsOptions.run)
2016-03-21 00:07:34 +00:00
.then(NpmtsClean.run)
2016-03-12 09:21:16 +00:00
.then(NpmtsInstall.run)
2016-02-19 23:53:23 +00:00
.then(NpmtsCompile.run)
2016-03-14 03:32:52 +00:00
.then(NpmtsAssets.run)
2016-02-22 21:22:39 +00:00
.then(NpmtsJsdoc.run)
2016-03-12 10:09:54 +00:00
.then(NpmtsTests.run)
2016-03-26 13:08:48 +00:00
.then(NpmtsPublish.run)
2016-03-12 10:09:54 +00:00
.then(function (configArg) {
var shipString = "" +
"\n" +
"\n" +
" # # ( )\n" +
" ___#_#___|__\n" +
" _ |____________| _\n" +
" _=====| | | | | |==== _\n" +
" =====| |.---------------------------. | |====\n" +
" <--------------------' . . . . . . . . '--------------/\n" +
" \\ /\n" +
" \\___________________________________________________________/\n" +
" wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n" +
" wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n" +
" wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n";
2016-03-14 03:32:52 +00:00
if (process.env.CI) {
console.log(shipString);
plugins.beautylog.success("READY TO SHIP!");
}
2016-03-26 16:35:55 +00:00
else {
plugins.beautylog.success("Done!");
}
2016-05-19 16:42:23 +00:00
done.resolve();
2016-03-12 10:09:54 +00:00
});
2016-05-19 16:42:23 +00:00
return done.promise;
2016-02-19 23:53:23 +00:00
};