
The working directory that is setup in this Terminal Window is the project's directory.Let us start actual programming with Android Framework. In the newly opened Terminal Window, type the following command: pwd

Notice that you may also use the following shortcut : ⌘⇧C

Then select Open New Terminal from the suggestion list.

Then start typing the following text: open New In Visual Studio Code open the Command Palette by typing ⌘⇧P. How to open a Terminal Window from Visual Studio Code? To run your iPhone emulator type the following command in the Terminal window: npm run iPhone6 This command will display the IDs for each knowns devices: = Devices = The CurrentDeviceID comes from the result of the following command: xcrun simctl list To do this add the following property to the scripts object: "iPhone6" : "/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceID 8528838E-4B47-4F0E-B415-E87F8C8A6163" You can use the scripts object to start an IPhone emulator. Create a script to run an iPhone emulator The scripts content is fully described at. To run your custom android emulator type the following command in the Terminal window: npm run Nexus5 To do this add the following property to the scripts object (Go to section Setup Android Emulator for the details on how to setup this Android emulator): "Nexus5" : "$ANDROID_HOME/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_25" You can use the scripts object to start an Android emulator.

Go back to the opened Terminal window and type the following command: npm test This object is a way to extend the commands set of npm. This entry represents a JavaScript literal object with one default property called test. In the previous section you started to dig into the scripts entry of the package.json file.
