GT2/GT2-iOS/node_modules/react-native-scripts/build/scripts/ios.js.map

1 line
4.0 KiB
Plaintext
Raw Normal View History

2018-02-12 17:26:06 +00:00
{"version":3,"sources":["ios.js"],"names":["constructManifestUrlAsync","process","cwd","address","hostType","localAddress","withTimestamp","openUrlInSimulatorSafeAsync","success","msg","generate","green","qrCode","underline","cyan","red","exit","startSimulatorAndPrintInfo","validation","reactNativeVersionWarnings","developerTool","offline","command","sync","join","isPlatformSupported","yellow","run"],"mappings":";;;;;;;;;;AAmCA;;sFACA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBACwB,cAASA,yBAAT,CAAmCC,QAAQC,GAAR,EAAnC,CADxB;;AAAA;AACQC,mBADR;AAAA;AAAA,mBAE6B,cAASH,yBAAT,CAAmCC,QAAQC,GAAR,EAAnC,EAAkD;AAC3EE,wBAAU;AADiE,aAAlD,CAF7B;;AAAA;AAEQC,wBAFR;;;AAME,0BAAIC,aAAJ,CAAkB,uBAAlB;AANF;AAAA,mBAOiC,eAAUC,2BAAV,CAAsCF,YAAtC,CAPjC;;AAAA;AAAA;AAOUG,mBAPV,SAOUA,OAPV;AAOmBC,eAPnB,SAOmBA,GAPnB;;;AASE,gBAAID,OAAJ,EAAa;AACX,uCAAGE,QAAH,CAAYP,OAAZ,EAAqB,kBAAU;AAC7B,8BAAIG,aAAJ,MAAqB,gBAAMK,KAAN,CAAY,mBAAZ,CAArB;AACA,oLAKJ,4BAAOC,MAAP,EAAe,CAAf,CALI,sEASF,gBAAMC,SAAN,CAAgB,gBAAMC,IAAN,CAAWX,OAAX,CAAhB,CATE,oIAY4C,gBAAMU,SAAN,CAAgB,gBAAMC,IAAN,CAAW,iBAAX,CAAhB,CAZ5C;AAmBD,eArBD;AAsBD,aAvBD,MAuBO;AACL,4BAAIR,aAAJ,CACK,gBAAMS,GAAN,CAAU,4BAAV,CADL,YAGFN,GAHE,YAKF,gBAAMM,GAAN,CAAU,YAAV,CALE;AAOAd,sBAAQe,IAAR,CAAa,CAAb;AACD;;AAzCH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G;;kBAAeC,0B;;;;;AAlCf;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AAEA;;;;;;AAEA,YAAOC,UAAP,CAAkBC,0BAAlB,GAA+C,KAA/C;AACA,YAAOC,aAAP,GAAuB,MAAvB;AACA,YAAOC,OAAP,GAAiB,IAAjB;;AAEA,IAAMC,UAAkB,qBAAWC,IAAX,CAAgB,eAAKC,IAAL,CAAUvB,QAAQC,GAAR,EAAV,EAAyB,WAAzB,CAAhB,IAAyD,SAAzD,GAAqE,KAA7F;;AAEA,IAAI,CAAC,eAAUuB,mBAAV,EAAL,EAAsC;AACpC,qBACE,gBAAMV,GAAN,CACE,0FADF,CADF;AAKA,qBACE,gBAAMW,MAAN,kBACkB,gBAAMZ,IAAN,CAAWQ,UAAU,QAArB,CADlB,0DADF;AAKArB,UAAQe,IAAR,CAAa,CAAb;AACD;;AAED,mBAASW,GAAT,CAAaV,0BAAb","file":"ios.js","sourcesContent":["// @flow\n\nimport { Config, ProjectSettings, Simulator, UrlUtils } from 'xdl';\n\nimport chalk from 'chalk';\nimport indent from 'indent-string';\nimport path from 'path';\nimport pathExists from 'path-exists';\nimport qr from 'qrcode-terminal';\nimport log from '../util/log';\n\nimport packager from '../util/packager';\n\nConfig.validation.reactNativeVersionWarnings = false;\nConfig.developerTool = 'crna';\nConfig.offline = true;\n\nconst command: string = pathExists.sync(path.join(process.cwd(), 'yarn.lock')) ? 'yarnpkg' : 'npm';\n\nif (!Simulator.isPlatformSupported()) {\n log(\n chalk.red(\n '\\nThis command only works on macOS computers with Xcode and the iOS simulator installed.'\n )\n );\n log(\n chalk.yellow(\n `If you run \\`${chalk.cyan(command + ' start')}\\` then you can view your app on a physical device.\\n`\n )\n );\n process.exit(1);\n}\n\npackager.run(startSimulatorAndPrintInfo);\n\n// print a nicely formatted message with setup information\nasync function startSimulatorAndPrintInfo() {\n const address = await UrlUtils.constructManifestUrlAsync(process.cwd());\n const localAddress = await UrlUtils.constructManifestUrlAsync(process.cwd(), {\n hostType: 'localhost',\n });\n\n log.withTimestamp('Starting simulator...');\n const { success, msg } = await Simulator.openUrlInSimulatorSafeAsync(localAddress);\n\n if (success) {\n qr.generate(address, qrCode => {\n log.withTimestamp(`${chalk.green('Packager started!')}`);\n log(\n `\nTo view your app with live reloading, point the Expo app to this QR code.\nYou'll find the QR scanner on the Projects tab of the app.\n\n${indent(qrCode, 2)}\n\nOr enter this address in the Expo app's search bar:\n\n ${chalk.underline(chalk.cyan(address))}\n\nYour phone will need to be on the same local network as this computer.\nFor links to install the Expo app, please visit ${chalk.underline(chalk.cyan('https://expo.io'))}.\n\nLogs from serving your app will appear here. Press Ctrl+C at any time to stop.\n\nIf you restart the simulator or change the simulated hardware, you may need to restart this process.\n`\n );\n });\n } else {\n log.withTimestamp(\n `${chalk.red('Failed to start simulator:')}\n\n${msg}\n\n${chalk.red('Exiting...')}`\n )