# All files / dist index.js

58.33% Statements 28/48
0% Branches 0/5
0% Functions 0/17
62.5% Lines 15/24

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    394x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x
    4x

    4x

    4x

    4x

    4x
     var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"Common",{enumerable:true,get:function get(){return _common.default;}});Object.defineProperty(exports,"Logger",{enumerable:true,get:function get(){return _logger.default;}});Object.defineProperty(exports,"CLI",{enumerable:true,get:function get(){return _cli.default;}});Object.defineProperty(exports,"Constants",{enumerable:true,get:function get(){return _constants.default;}});Object.defineProperty(exports,"Exec",{enumerable:true,get:function get(){return _exec.default;}});Object.defineProperty(exports,"FileUtils",{enumerable:true,get:function get(){return _fileutils.default;}});Object.defineProperty(exports,"Doctor",{enumerable:true,get:function get(){return _doctor.default;}});Object.defineProperty(exports,"PlatformTools",{enumerable:true,get:function get(){return _platformTools.default;}});Object.defineProperty(exports,"PluginTools",{enumerable:true,get:function get(){return _pluginTools.default;}});Object.defineProperty(exports,"SetupTools",{enumerable:true,get:function get(){return _setupTools.default;}});exports.default=exports.run=void 0;var _chalk=_interopRequireDefault(require("chalk"));
    var _common=_interopRequireWildcard(require("./common"));
    var _logger=_interopRequireWildcard(require("./systemTools/logger"));
    var _cli=_interopRequireWildcard(require("./cli"));
    var _constants=_interopRequireDefault(require("./constants"));
    var _exec=_interopRequireDefault(require("./systemTools/exec"));
    var _fileutils=_interopRequireDefault(require("./systemTools/fileutils"));
    var _doctor=_interopRequireDefault(require("./systemTools/doctor"));
    var _platformTools=_interopRequireDefault(require("./platformTools"));
    var _pluginTools=_interopRequireDefault(require("./pluginTools"));
    var _setupTools=_interopRequireDefault(require("./setupTools"));

    var run=function run(cmd,subCmd,program,process){
    (0,_common.initializeBuilder)(cmd,subCmd,process,program).
    then(function(c){return checkWelcome(c);}).
    then(function(c){return(0,_common.startBuilder)(c);}).
    then(function(v){return(0,_cli.default)(v);}).
    catch(function(e){return(0,_logger.logError)(e,true);});
    };exports.run=run;

    var checkWelcome=function checkWelcome(c){return new Promise(function(resolve,reject){
    if(!c.command&&!c.subCommand||c.command==='help'){
    (0,_logger.logWelcome)();

    (0,_cli.logHelp)();
    }else{
    resolve(c);
    }
    });};var _default=

    {run:run};exports.default=_default;
    //# sourceMappingURL=index.js.map