var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _logger=require("../core/systemManager/logger");
var _configParser=require("../core/configManager/configParser");
var _engineManager=require("../core/engineManager");
var _migrator=require("../core/projectManager/migrator");
var _projectParser=require("../core/projectManager/projectParser");

var _engineRn=_interopRequireDefault(require("../engine-rn"));
var _engineRnWeb=_interopRequireDefault(require("../engine-rn-web"));
var _engineRnElectron=_interopRequireDefault(require("../engine-rn-electron"));
var _engineRnNext=_interopRequireDefault(require("../engine-rn-next"));
var _engineCore=_interopRequireDefault(require("../engine-core"));

var registerEngines=function registerEngines(){
(0,_logger.logTask)('registerEngines');
(0,_engineManager.registerEngine)(_engineCore.default);
(0,_engineManager.registerEngine)(_engineRnWeb.default);
(0,_engineManager.registerEngine)(_engineRnElectron.default);
(0,_engineManager.registerEngine)(_engineRnNext.default);
(0,_engineManager.registerEngine)(_engineRn.default);
};


var run=function run(c){var taskInstance;return _regenerator.default.async(function run$(_context){while(1){switch(_context.prev=_context.next){case 0:
registerEngines();_context.next=3;return _regenerator.default.awrap(
(0,_configParser.configureRuntimeDefaults)(c));case 3:_context.next=5;return _regenerator.default.awrap(
(0,_migrator.checkAndMigrateProject)(c));case 5:_context.next=7;return _regenerator.default.awrap(
(0,_configParser.parseRenativeConfigs)(c));case 7:_context.next=9;return _regenerator.default.awrap(

(0,_projectParser.checkIfProjectAndNodeModulesExists)(c));case 9:_context.next=11;return _regenerator.default.awrap(

(0,_engineManager.findSuitableTask)(c));case 11:taskInstance=_context.sent;_context.next=14;return _regenerator.default.awrap(

(0,_engineManager.initializeTask)(c,taskInstance.task));case 14:case"end":return _context.stop();}}},null,null,null,Promise);};var _default=


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