2018-04-08 23:03:39 +00:00
|
|
|
import * as q from 'smartq';
|
2016-10-21 15:48:52 +00:00
|
|
|
|
2018-04-08 23:03:39 +00:00
|
|
|
import * as plugins from './npmts.plugins';
|
2016-10-21 15:48:52 +00:00
|
|
|
|
2018-04-08 23:03:39 +00:00
|
|
|
import { INpmtsConfig } from './npmts.config';
|
2016-10-21 15:48:52 +00:00
|
|
|
|
|
|
|
export let run = (configArg: INpmtsConfig) => {
|
2018-04-08 23:03:39 +00:00
|
|
|
let done = q.defer();
|
|
|
|
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(configArg);
|
|
|
|
};
|