In the Edit Configuration dialog that opens, click on the toolbar and select Cordova from the context menu. Create a run configurationįrom the main menu, select Run | Edit Configurations. PhoneGap and Cordova applications are executed according to a dedicated run/debug configuration. Running PhoneGap and Cordova applications Projects created from the Welcome screen or via File | New | Project as described in are automatically considered trusted. That means project is initialized, project's plugins are resolved, dependencies are added, and all IntelliJ IDEA features are available.ĭon't Open: in this case IntelliJ IDEA doesn't open the project. Trust Project: in this case, IntelliJ IDEA opens and loads a project. IntelliJ IDEA displays a notification on top of the editor area, and you can click the Trust project… link and load your project at any time. It means that you can browse the project's sources but you cannot run tasks and script or run/debug your project. Preview in Safe Mode: in this case IntelliJ IDEA, opens the project in a preview mode. When you open a project that was created outside IntelliJ IDEA and was imported into it, IntelliJ IDEA displays a dialog where you can decide how to handle this project with unfamiliar source code. To preserve this default behavior, make sure the Automatically exclude working directories ('platforms', 'www' for ionic) checkbox is selected. In the Cordova working directory field, specify the folder where the application files to run are stored.īy default, IntelliJ IDEA automatically treats the platforms or www directory as excluded and ignores it during indexing, parsing, and code completion, see Configuring folders in a content root. IntelliJ IDEA detects the installed version and displays it in the Cordova version read-only field. This can be phonegap, phonegap.cmd, cordova, or cordova.cmd, depending on your operating system and the selected framework. Open the Settings dialog ( Ctrl+Alt+S) and go to Languages & Frameworks | JavaScript | Cordova.Ĭheck the location of the executable file or specify the path to it if IntelliJ IDEA has not detected the executable automatically. Configure PhoneGap or Cordova in your project To continue developing an existing application, open it in IntelliJ IDEA, download the required dependencies, and configure PhoneGap or Cordova support in your project. Starting with an existing PhoneGap or Cordova application When you click Finish, IntelliJ IDEA generates a skeleton of an application with the framework-specific structure. Depending on your operating system and target platform, this can be phonegap, phonegap.cmd, cordova, or cordova.cmd. Specify the location of the executable file. On the second page of the wizard, specify the project name and the folder to create it in. In the right-hand pane, choose Cordova and click Next. In the New Project dialog, select JavaScript in the left-hand pane. Select File | New | Project from the main menu or click the New Project button on the Welcome screen. Alternatively, create an empty IntelliJ IDEA project and configure PhoneGap or Cordova support in it. If you have no application yet, you can generate an IntelliJ IDEA project with PhoneGap or Cordova-specific structure from a boilerplate template. Learn more from the Cordova official website.Ĭreating a new PhoneGap or Cordova application Npm install -g more from the PhoneGap official website. In the embedded Terminal ( Alt+F12), type one of the following commands: Open the embedded Terminal ( Alt+F12) and type: To emulate the iOS platform, install the ios-sim and ios-deploy command-line tools globally. Learn more from the Cordova official website. Install and enable the Cordova plugin on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains repository.ĭownload and install an emulator tool depending on the target platform and the operating system you use. Make sure you have Node.js on your computer. PhoneGap and Apache Cordova are frameworks for developing mobile application with single HTML, CSS, and JavaScript/TypeScript code base and targeting various mobile platforms, including Android.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |