UNPKG

2.2 kBSource Map (JSON)View Raw
1{"version":3,"sources":["printRunInstructionsAsync.js"],"names":["getCurrentUserAsync","user","newLine","bold","underline","printRunInstructionsAsync"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;;;;AACA;AAAA;AAAA;;;;AACA;AAAA;AAAA;;;;;4IAEe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBACI,2BAAYA,mBAAZ,EADJ;;AAAA;AACTC,gBADS;;;AAGb;AACA,gBAAIA,IAAJ,EAAU;AACR,4CAAIC,OAAJ;AACA,iDAAI,kCAAMC,IAAN,CAAW,wDAAX,CAAJ;AACA,iDAAO,kCAAMC,SAAN,CAAgB,iBAAhB,CAAP;AACA,iDACK,kCAAMA,SAAN,CAAgB,aAAhB,CADL,cAC4C,kCAAMD,IAAN,CACxC,0CADwC,CAD5C;;AAMA;AACA;AACA;AACA;AACA;AACA;AACD;;AAED,0CAAID,OAAJ;AACA,+CAAI,kCAAMC,IAAN,CAAW,kDAAX,CAAJ;AACA,qGACsD,kCAAMA,IAAN,CAAW,SAAX,CADtD,YACkF,kCAAMA,IAAN,CAC9E,aAD8E,CADlF;AAKA,0CAAID,OAAJ;;AA7Ba;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G;;WAAeG,yB;;;;SAAAA,yB","file":"../printRunInstructionsAsync.js","sourcesContent":["import { User as UserManager } from 'xdl';\nimport chalk from 'chalk';\nimport log from './log';\n\nexport default async function printRunInstructionsAsync() {\n let user = await UserManager.getCurrentUserAsync();\n\n // If no user, we are offline and can't connect\n if (user) {\n log.newLine();\n log(chalk.bold('Instructions to open this project on a physical device'));\n log(`${chalk.underline('Android devices')}: scan the above QR code.`);\n log(\n `${chalk.underline('iOS devices')}: run ${chalk.bold(\n 'exp send -s <your-phone-number-or-email>'\n )} in this project directory in another terminal window to send the URL to your device.`\n );\n\n // NOTE(brentvatne) Uncomment this when we update iOS client\n // log(\n // `Alternatively, sign in to your account (${chalk.bold(\n // user.username\n // )}) in the latest version of the Expo client on your iOS or Android device. Your projects will automatically appear in the \"Projects\" tab.`\n // );\n }\n\n log.newLine();\n log(chalk.bold('Instructions to open this project on a simulator'));\n log(\n `If you already have the simulator installed, run ${chalk.bold('exp ios')} or ${chalk.bold(\n 'exp android'\n )} in this project directory in another terminal window.`\n );\n log.newLine();\n}\n"],"sourceRoot":"/exp@57.1.1/src"}
\No newline at end of file