52 lines
2.3 KiB
TypeScript
52 lines
2.3 KiB
TypeScript
import "typings-global";
|
|
import plugins = require("./npmts.plugins");
|
|
|
|
export let npmtsOra = new plugins.beautylog.Ora("setting up TaskChain","cyan");
|
|
|
|
import NpmtsAssets = require("./npmts.assets");
|
|
import NpmtsClean = require("./npmts.clean");
|
|
import NpmtsCompile = require("./npmts.compile");
|
|
import NpmtsConfigFile = require("./npmts.configfile");
|
|
import NpmtsInstall = require("./npmts.install");
|
|
import NpmtsJsdoc = require("./npmts.jsdoc");
|
|
import NpmtsOptions = require("./npmts.options");
|
|
import NpmtsPublish = require("./npmts.publish");
|
|
import NpmtsTests = require("./npmts.tests");
|
|
|
|
export let promisechain = function(argvArg){
|
|
let done = plugins.Q.defer();
|
|
npmtsOra.start();
|
|
NpmtsConfigFile.run(argvArg)
|
|
.then(NpmtsOptions.run)
|
|
.then(NpmtsClean.run)
|
|
.then(NpmtsInstall.run)
|
|
.then(NpmtsCompile.run)
|
|
.then(NpmtsAssets.run)
|
|
.then(NpmtsJsdoc.run)
|
|
.then(NpmtsTests.run)
|
|
.then(NpmtsPublish.run)
|
|
.then(function(configArg){
|
|
let shipString = "" +
|
|
"\n" +
|
|
"\n" +
|
|
" # # ( )\n" +
|
|
" ___#_#___|__\n" +
|
|
" _ |____________| _\n" +
|
|
" _=====| | | | | |==== _\n" +
|
|
" =====| |.---------------------------. | |====\n" +
|
|
" <--------------------' . . . . . . . . '--------------/\n" +
|
|
" \\ /\n" +
|
|
" \\___________________________________________________________/\n" +
|
|
" wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n" +
|
|
" wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n" +
|
|
" wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\n"
|
|
if (process.env.CI){
|
|
console.log(shipString);
|
|
plugins.beautylog.success("READY TO SHIP!");
|
|
} else {
|
|
plugins.beautylog.success("Done!");
|
|
}
|
|
done.resolve();
|
|
});
|
|
return done.promise;
|
|
}; |